public override Folder Go(MyPath path) { var folder = new FtpFolder(path, Client); if (!folder.Exists()) { throw new DirectoryNotFoundException(); } Go(folder); return(folder); }
public override void Create <TFile>(string filename) { MyFile file; if (typeof(TFile).IsSubclassOf(typeof(TextFile))) { file = new FtpFile(CurrentPath.Join(filename), Client); } else { file = new FtpFolder(CurrentPath.Join(filename), Client); } file.Create(); }