Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ReadWriteFileSystemProvider.CreateDirectory Method

Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

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 child.

DirectoryNode child

To be created DirectoryNode.

Returns
Type Description
DirectoryNode

An up-to-date instance of DirectoryNode which represents the created child. If the method did not change anything important for the current representation of the node, you can return the child argument; otherwise you can create a new instance of DirectoryNode.

Examples
protected override DirectoryNode CreateDirectory(DirectoryNode parent, DirectoryNode child)
{
 var newDirectoryFullPath = getFullPath(child.Path);
 Directory.CreateDirectory(newDirectoryFullPath);
 return child;
}
In This Article
  • CreateDirectory(DirectoryNode, DirectoryNode)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies