using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sikFtpClient.Model { public class LocalDirectoryModel : DiscElementModel { public LocalDirectoryModel(string path) : base(path) { } public static List GetContent(string path) { var directories = Directory.GetDirectories(path); var files = Directory.GetFiles(path); List result = new List(); foreach (var file in files) { result.Add(new LocalFileModel(file)); } foreach (var directory in directories) { result.Add(new LocalDirectoryModel(directory)); } return result; } } }