public EmptyRootDirectory(EmptyUnixFileSystem fileSystem) { FileSystem = fileSystem; var accessMode = new GenericAccessMode(true, false, false); Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode); }
public GcsFileEntry(GcsFileSystem fileSystem) { FileSystem = fileSystem; var accessMode = new GenericAccessMode(true, true, true); Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode); }
/// <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); }
protected VirtualEntry(VirtualFileSystem parent, VirtualDirectory dir = null) { Parent = parent; Previous = dir; var mode = new GenericAccessMode(true, false, false); Permissions = new GenericUnixPermissions(mode, mode, mode); }
/// <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); }
/// <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; }
public EmptyRootDirectory() { var accessMode = new GenericAccessMode(true, false, false); Permissions = new GenericUnixPermissions(accessMode, accessMode, accessMode); }