FileSpec.PathUp Method | |
Remove the last subdirectory from the end of this file specification's path.
Namespace:
VO
Assembly:
VOSystemClasses (in VOSystemClasses.dll) Version: 2.21
Syntax Remarks
If the path was previously the root or unknown (NIL), PathUp() does not change the path. Other components — drive, file name, and extension — are not affected.
Examples
For example, to store selected data in a backup directory at a peer level to the actual data directory:
1oFSCust := FileSpec{"c:\data\cust.dbf"}
2oFSCustBackup := FileSpec{oFSCust:FullPath}
3oFSCustBackup:PathUp()
4oFSCustBackup:AppendToPath("backup")
See Also