public void CheckDirectory(string path) { string dir = FileWrap.GetDirectoryName(path); if (!string.IsNullOrWhiteSpace(dir) && !FileWrap.DirectoryExist(dir)) { FileWrap.CreateDirectory(dir); } }