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