
The Function Block PATHINFO returns information about a Unix file path.
The input expects a Linux or Unix file path as a string. Here is an example:
/home/antcas/Documents/My Draft.v1.docx
Returns the directory name. This ends without a slash at the end.
From the above example:
/home/antcas/Documents
Note: If a directory has already been specified, it should be terminated with a dot.
Returns the complete file name including the file extension.
From the above example:
My Draft.v1.docx
Returns the file name without the file extension.
From the above example:
My Draft.v1
Returns the file extension without a dot.
From the above example:
docx