file class : Directory getter
Description
Gets an instance of the directory class that is the parent of the file.
Syntax
fileInstance.Directory
Arguments
None
Return value
Class | Description |
directory | Parent directory of the file. |
Sample code
1: | file f = new file("c:\somewhere..."); |
2: | directory parentDir = f.Directory; |
Notes
It's a wrapper of the System.IO.FileInfo.Directory property.