ReadOnlyFileSystemProvider.MakeNewFileNode Method
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9048)
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.
Declaration
protected virtual FileNode MakeNewFileNode(string name, DirectoryNode parentNode)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the new FileNode. |
DirectoryNode | parentNode | Parent of the new DirectoryNode. |
Returns
Type | Description |
---|---|
FileNode | A new instance of FileNode. |