Function Block PATHINFO

The Function Block PATHINFO returns information about a Unix file path.

Input

The input expects a Linux or Unix file path as a string. Here is an example:

/home/antcas/Documents/My Draft.v1.docx

Output DIRNAME

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.

Output BASENAME

Returns the complete file name including the file extension.

From the above example:

My Draft.v1.docx

Output FILENAME

Returns the file name without the file extension.

From the above example:

My Draft.v1

Output EXTENSION

Returns the file extension without a dot.

From the above example:

docx