public static void UpdateFolders() { if (!Directory.Exists(Settings.Default.BaseDataPath)) { Directory.CreateDirectory(Settings.Default.BaseDataPath); } if (Directory.GetDirectories(Settings.Default.BaseDataPath).Length == 0) { Directory.CreateDirectory(Path.Combine(Settings.Default.BaseDataPath, "Public")); } /// The data folder has subfolders to isolate different groups. Each group has their own set of user folders, upload folder and output folders. /// Each level also has it's own set of "public" folders. foreach (var orgFolderPath in Directory.GetDirectories(Settings.Default.BaseDataPath)) { ScanUploadFolder(orgFolderPath); if (Settings.Default.CreateUnityAssetBundles) { AssetCatalog.UpdateCatalog(orgFolderPath); } } }