MountCapableFileSystemProvider.Unmount Method
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 8.0.9673)
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");