Example #1
0
 public FolderNode(string lineFTPListDetail, string ftpListDirectory, FTPDetailParser parser, FTPConnection connection)
 {
     this.Modified                = parser.ParseModifiedDate(lineFTPListDetail);
     this.Name                    = parser.ParseFileName(lineFTPListDetail);
     this.IsDirectory             = true;
     this.RelativeParentDirectory = ftpListDirectory;
     this.Size                    = 0;
     SubdirectoyMap               = new FileSystemMap(Path.Combine(ftpListDirectory, Name), FileSystemMap.FileBuildType.FTP, connection);
 }
Example #2
0
 public FileSystemNode(string lineFTPListDetail, string ftpListDirectory, FTPDetailParser parser)
 {
     Modified                = parser.ParseModifiedDate(lineFTPListDetail);
     Name                    = parser.ParseFileName(lineFTPListDetail);
     IsDirectory             = parser.ParseDIRMarker(lineFTPListDetail);
     RelativeParentDirectory = ftpListDirectory;
     if (!IsDirectory)
     {
         Size = parser.ParseSize(lineFTPListDetail);
     }
     else
     {
         Size = 0;
     }
 }