FileSpec.PathUp Method (Typed) | |
Remove the last subdirectory from the end of this file specification's path.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.19
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