public SftpDirectory(SftpStorage storage, SftpDirectory parent, Renci.SshNet.Sftp.SftpFile directory) { this.storage = storage; this.parent = parent; this.directory = directory; }
/// <summary> /// Validates if a unix path is valid as a directory /// path /// </summary> /// <param name="unixFile">The unix path to validate</param> /// <returns>True if the unix file is valid</returns> public bool IsUnixDirValid(SftpFile unixFile) { return(unixFile.Name != ".." && unixFile.Name != "." && !this.IgnoreDirectories.Contains(unixFile.Name)); }
public SftpFile(SftpStorage storage, SftpDirectory parent, Renci.SshNet.Sftp.SftpFile file) { this.storage = storage; this.parent = parent; this.file = file; }