MountCapableFileSystemProvider.Unmount Method
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9448)
Unmount(DirectoryNode)
Unmounts (disassociates) a file system from the mountDirectory.
Declaration
public void Unmount(DirectoryNode mountDirectory)
Parameters
| Type | Name | Description |
|---|---|---|
| DirectoryNode | mountDirectory | A mount point with a file system previously mounted using the Mount method. |
Examples
//Mount directory.
var mountedDirectory = mountCapableFileSystem.Mount(@"/Temp", memoryProvider);
//Use mountedDirectory
//...
//...
//Disassociate file system from previously mounted directory '/Temp'.
mountCapableFileSystem.Unmount(mountedDirectory);
See Also
Unmount(NodePath)
Unmounts (disassociates) a file system from DirectoryNode found on the mountDirectoryPath.
Declaration
public void Unmount(NodePath mountDirectoryPath)
Parameters
| Type | Name | Description |
|---|---|---|
| NodePath | mountDirectoryPath | A mount point path with a file system previously mounted using the Mount method. |
Examples
//Disassociate file system from directory '/tmp'
hybridFileSystem.Unmount(@"/tmp");