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