Ejemplo n.º 1
0
            public EmptyRootDirectory(EmptyUnixFileSystem fileSystem)
            {
                FileSystem = fileSystem;
                var accessMode = new GenericAccessMode(true, false, false);

                Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
            }
 /// <summary>
 /// Initializes a new instance of the <see cref="FtpConnectionData"/> class.
 /// </summary>
 /// <param name="connection">The <see cref="FtpConnection"/> to create the data for</param>
 internal FtpConnectionData([NotNull] FtpConnection connection)
 {
     UserData = new ExpandoObject();
     TransferMode = new FtpTransferMode(FtpFileType.Ascii);
     BackgroundCommandHandler = new BackgroundCommandHandler(connection);
     Path = new Stack<IUnixDirectoryEntry>();
     FileSystem = new EmptyUnixFileSystem();
 }
Ejemplo n.º 3
0
 public EmptyRootDirectory(EmptyUnixFileSystem fileSystem)
 {
     FileSystem = fileSystem;
     var accessMode = new GenericAccessMode(true, false, false);
     Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
 }