示例#1
0
            public EmptyRootDirectory(EmptyUnixFileSystem fileSystem)
            {
                FileSystem = fileSystem;
                var accessMode = new GenericAccessMode(true, false, false);

                Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
            }
示例#2
0
        public GcsFileEntry(GcsFileSystem fileSystem)
        {
            FileSystem = fileSystem;

            var accessMode = new GenericAccessMode(true, true, true);

            Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DotNetFileSystemEntry"/> class.
        /// </summary>
        /// <param name="fsInfo">The <see cref="FileSystemInfo"/> to extract the information from.</param>
        protected DotNetFileSystemEntry([NotNull] FileSystemInfo fsInfo)
        {
            Info          = fsInfo;
            LastWriteTime = new DateTimeOffset(Info.LastWriteTime);
            CreatedTime   = new DateTimeOffset(Info.CreationTimeUtc);
            var accessMode = new GenericAccessMode(true, true, true);

            Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
        }
示例#4
0
        protected VirtualEntry(VirtualFileSystem parent,
                               VirtualDirectory dir = null)
        {
            Parent   = parent;
            Previous = dir;
            var mode = new GenericAccessMode(true, false, false);

            Permissions = new GenericUnixPermissions(mode, mode, mode);
        }
示例#5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomServerDemoEntry"/> class.
        /// </summary>
        /// <param name="fsInfo">The <see cref="FileSystemInfo"/> to extract the information from.</param>
        protected CustomServerDemoEntry(FileSystemInfo fsInfo)
        {
            Info          = fsInfo;
            LastWriteTime = new DateTimeOffset(Info.LastWriteTime);
            CreatedTime   = new DateTimeOffset(Info.CreationTimeUtc);
            var accessMode = new GenericAccessMode(true, true, true);

            Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DotNetFileEntry"/> class.
        /// </summary>
        /// <param name="fileSystem">The file system this entry belongs to</param>
        /// <param name="info">The <see cref="FileInfo"/> to extract the information from</param>
        public DotNetFileEntry([NotNull] DotNetFileSystem fileSystem, [NotNull] FileInfo info)
        {
            FileSystem    = fileSystem;
            Info          = info;
            LastWriteTime = new DateTimeOffset(Info.LastWriteTime);
            CreatedTime   = new DateTimeOffset(Info.CreationTimeUtc);
            var accessMode = new GenericAccessMode(true, true, true);

            Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
        }
示例#7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RemoteDirectoryEntry"/> class.
        /// </summary>
        /// <param name="fileSystem">The file system this entry belongs to</param>
        /// <param name="dirInfo">The <see cref="DirectoryInfo"/> to extract the information from</param>
        /// <param name="isRoot">Is this the root directory?</param>
        public RemoteDirectoryEntry(RemoteFileSystem fileSystem, DirectoryInfo dirInfo, bool isRoot)
        {
            FileSystem    = fileSystem;
            Info          = dirInfo;
            LastWriteTime = new DateTimeOffset(Info.LastWriteTime);
            CreatedTime   = new DateTimeOffset(Info.CreationTimeUtc);
            var accessMode = new GenericAccessMode(true, true, true);

            Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
            IsRoot      = isRoot;
        }
示例#8
0
            public EmptyRootDirectory()
            {
                var accessMode = new GenericAccessMode(true, false, false);

                Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode);
            }