private static FolderComponent GetFolders(string path)
 {
     FolderComponent folder = new Folder(path);
     folder.AssignRules();
     foreach (var directory in Directory.GetDirectories(path))
     {
         folder.AddFolder(GetFolders(directory));
     }
     return folder;
 }