FileOps.$converthfspathtoposixpath()

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

Syntax

FileOps.$converthfspathtoposixpath(cHfsPath,&cPosixPath)

Description

Converts an HFS file path to a POSIX 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, $converthfspathtoposixpath() simply copies cHfsPath to cPosixPath.

Example

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