directory class : Parent getter
Description
Gets the parent directory.
Syntax
directoryInstance.Parent
Arguments
None
Return value
Class | Description |
directory | The parent directory of the invoker. |
Sample code
1: | directory dir = new directory("c:\somewhere..."); |
2: | directory parentDirectory = dir.Parent; |
Notes
It's a wrapper of the System.IO.DirectoryInfo.Parent property.
If there is no parent, return uninitialized instance of the directory class.