private static IEnumerable <Folder> GetSubfolders(Folder root, string folder, Folder parent) { var directories = Directory.GetDirectories(folder); foreach (var directory in directories) { yield return(Folder.CreateFolder(root, directory, parent)); } }
public FileEventArgs(File file, Folder folder) { File = file; Folder = folder; }