Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ReadWriteFileSystemProvider Class

Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

Serves as the base class for read-write file system providers.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Syntax
public abstract class ReadWriteFileSystemProvider : ReadOnlyFileSystemProvider, IDisposable
Inheritance
Object
FileSystemProvider
ReadOnlyFileSystemProvider
ReadWriteFileSystemProvider
Implements
IDisposable
Inherited Members
FileSystemProvider.Dispose()
ReadOnlyFileSystemProvider.Content(Stream)
ReadOnlyFileSystemProvider.CreateChildFileSystem(NodePath)
ReadOnlyFileSystemProvider.DefaultDirectoryContentLength
ReadOnlyFileSystemProvider.Dispose(Boolean)
ReadOnlyFileSystemProvider.Exists(NodePath, NodeType)
ReadOnlyFileSystemProvider.GetAttributes(NodeBase)
ReadOnlyFileSystemProvider.GetChild(String, DirectoryNode)
ReadOnlyFileSystemProvider.GetChildren(DirectoryNode, NodeType)
ReadOnlyFileSystemProvider.GetContent(NodeBase, NodeContentParameters)
ReadOnlyFileSystemProvider.GetLength(NodeBase)
ReadOnlyFileSystemProvider.GetTimeInfo(NodeBase)
ReadOnlyFileSystemProvider.MakeNewDirectoryNode(String, DirectoryNode)
ReadOnlyFileSystemProvider.MakeNewFileNode(String, DirectoryNode)
ReadOnlyFileSystemProvider.OriginalSettings
ReadOnlyFileSystemProvider.Root
ReadOnlyFileSystemProvider.Settings
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
ReadWriteFileSystemProvider()

Initializes a new instance of the ReadWriteFileSystemProvider with the Default settings.

ReadWriteFileSystemProvider(FileSystemProviderSettings)

Initializes a new instance of the ReadWriteFileSystemProvider with the fileSystemSettings.

Fields

Name Description
DefaultDirectoryContentLength

Constant represents default length of the content of a DirectoryNode.

The value of the constant is 0.

Inherited from ReadOnlyFileSystemProvider.

Properties

Name Description
OriginalSettings

Gets the original file system settings. Inherited from ReadOnlyFileSystemProvider.

Root

Gets the root directory of this instance. Inherited from ReadOnlyFileSystemProvider.

Settings

Gets the file system settings which were used to create this instance. Inherited from ReadOnlyFileSystemProvider.

Methods

Name Description
Content(Stream)

Creates a new instance of NodeContent with the underlying contentStream.

Instances of ReadOnlyFileSystemProvider create new NodeContent using the CreateReadOnlyContent(Stream) method.

Instances of ReadWriteFileSystemProvider create new NodeContent using the CreateDelayedWriteContent(Stream) method.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
CreateChildFileSystem(NodePath)

Creates a child file system with the root path of directoryPath. Inherited from ReadOnlyFileSystemProvider.

CreateDirectory(DirectoryNode, DirectoryNode)

Override this method to implement DirectoryNode creation.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

CreateFile(DirectoryNode, FileNode)

Override this method to implement FileNode creation.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Delete(NodeBase)

Override this method to implement DirectoryNode and FileNode deletion.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting resources. Inherited from FileSystemProvider.

Dispose(Boolean)

Releases the resources used by the FileSystemProvider. Inherited from ReadOnlyFileSystemProvider.

Exists(NodePath, NodeType)

Override this method to implement verification of existence of a FileNode or DirectoryNode.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
GetAttributes(NodeBase)

Returns attributes (NodeAttributes) for the node.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
GetChild(String, DirectoryNode)

Override this method to implement retrieval of DirectoryNode or FileNode with the specified name located in the specified parent directory.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
GetChildren(DirectoryNode, NodeType)

Override this method to implement getting a collection of DirectoryNode and/or FileNode objects that are located in the parent and value of their property NodeType is contained in the nodeType.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
GetContent(NodeBase, NodeContentParameters)

Override this method to implement retrieval of the content for the node.

By default, this method is only called for files (instances of the class FileNode). To enable this method for directories (instances of DirectoryNode), add a new instance of FileSystemProviderSettings (with the property EnableGetContentMethodForDirectories set to true) to the ReadOnlyFileSystemProvider(FileSystemProviderSettings) constructor.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
GetLength(NodeBase)

Override this method to implement retrieval of the length of the content for the node.

By default, this method is only called for files (instances of the class FileNode). To enable this method for directories (instances of DirectoryNode), add a new instance of FileSystemProviderSettings (with the property EnableGetLengthMethodForDirectories set to true) to the ReadOnlyFileSystemProvider(FileSystemProviderSettings) constructor.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
GetTimeInfo(NodeBase)

Override this method to implement retrieval of NodeTimeInfo for the node.

Fill the following NodeTimeInfo properties:

CreationTime.

AccessTime.

LastWriteTime.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
MakeNewDirectoryNode(String, DirectoryNode)

Factory method that creates a new instance of DirectoryNode with Name initialized to name and Parent initialized to parentNode. Classes derived from the ReadOnlyFileSystemProvider class or from the class ReadWriteFileSystemProvider can override this method and returns instance of the more specific class derived from DirectoryNode.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
MakeNewFileNode(String, DirectoryNode)

Factory method that creates a new instance of FileNode that will have Name initialized to name and Parent initialized to parentNode. Classes derived from the class ReadOnlyFileSystemProvider or from the class ReadWriteFileSystemProvider can override this method and returns instance of the more specific class derived from FileNode.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Inherited from ReadOnlyFileSystemProvider.
Move(NodeBase, DirectoryNode)

Override this method to implement moving a DirectoryNode/FileNode.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Rename(NodeBase, String)

Override this method to implement renaming a DirectoryNode/FileNode.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

SaveContent(NodeBase, NodeContent)

Override this method to implement a save content functionality for FileNode and DirectoryNode.

By default, this method is only called for files (instances of the class FileNode). To enable this method for directories (instances of DirectoryNode), add a new instance of FileSystemProviderSettings (with the property EnableGetContentMethodForDirectories set to true) to the ReadWriteFileSystemProvider(FileSystemProviderSettings) constructor.

If the instance of the NodeContent returned from the method GetContent(NodeBase, NodeContentParameters) has been created using the method NodeContent, then method SaveContent(NodeBase, NodeContent) IS NOT CALLED.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

SetAttributes(NodeBase, NodeAttributes)

Override this method to implement a attribute updating functionality for FileNode and DirectoryNode.

Default implementation do nothing and returns node.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

SetTimeInfo(NodeBase, NodeTimeInfo)

Override this method to implement time info updating functionality for FileNode and DirectoryNode.

When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.

Extension Methods

FileSystemProviderExtensions.AsVDriveInfo(FileSystemProvider)
FileSystemProviderExtensions.GetRootVDirectoryInfo(FileSystemProvider)
FileSystemNotificationExtensions.GetFileSystemNotifier(FileSystemProvider)

See Also

ReadOnlyFileSystemProvider
FileSystemNotifier
In This Article
  • Constructors
  • Fields
  • Properties
  • Methods
  • Extension Methods
  • See Also
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies