private void WriteAll(string file_path, byte[] info) { string parent_folder = PathFunctions.GetParentFolderPath(file_path); CreateAllFolders(parent_folder); File.WriteAllBytes(file_path, info); }
private void CreateAllFolders(string folder_path) { if (!Directory.Exists(folder_path)) { string parent_folder = PathFunctions.GetParentFolderPath(folder_path); CreateAllFolders(parent_folder); Directory.CreateDirectory(folder_path); } }