ReadWriteFileSystemProvider.CreateFile Method
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
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.
Declaration
protected abstract FileNode CreateFile(DirectoryNode parent, FileNode child)
Parameters
Type | Name | Description |
---|---|---|
DirectoryNode | parent | Parent DirectoryNode that contains |
FileNode | child | To be created FileNode. |
Returns
Type | Description |
---|---|
FileNode | An up-to-date instance of FileNode which represents the created |
Examples
protected override FileNode CreateFile(DirectoryNode parent, FileNode child)
{
var newFileFullPath = getFullPath(child.Path);
File.Create(newFileFullPath).Close();
return child;
}