FilePath
The FilePath() function returns the directory path portion of a full file path, excluding the file name.
Related functions: FileList, FileName
Syntax:
FilePath(FilePathName)- In the Quintessence Editor (Studio) using Python language, use:
Qx.FilePath()
ⓘ See parameter descriptions
| FilePathName | The full directory path and file name. |
Examples:
The examples provided below are based on fictitious data for illustrative purposes only.
> Example 1: Retrieve the file name from a file path
Range:
| C:\File1.txt |
| C:\NewFiles\File2.txt |
Formula:
return := FilePath(Range);Result:
| C:\ |
| C:\NewFiles\ |
