FileOps.$convertposixpathtohfspath()

Function group Execute on client Platform(s)
FileOps NO macOS

Syntax

FileOps.$convertposixpathtohfspath(cPosixPath,&cHfsPath)

Description

Converts a POSIX file path to an HFS file path. Pathnames can be over 255 characters, which was the limit in Studio 8.0.1 or earlier.

An HFS file path is colon-delimited, where a leading colon indicates a relative path, otherwise the first component denotes the volume. A POSIX path is slash-delimited.

On any other platform, other than macOS, $convertposixpathtohfspath() simply copies cPosixPath to cHfsPath.

Example

Do  FileOps.$convertposixpathtohfspath("Applications/Calculator",lHfsPath)
# lHfsPath is returned as ":Applications:Calculator"