Пример #1
0
        private void WriteAll(string file_path, byte[] info)
        {
            string parent_folder = PathFunctions.GetParentFolderPath(file_path);

            CreateAllFolders(parent_folder);
            File.WriteAllBytes(file_path, info);
        }
Пример #2
0
 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);
     }
 }