ReadWriteFileSystemProvider Class
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
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
Implements
Inherited Members
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 |
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 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 |
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 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 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 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 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 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 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 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 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 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. |