FileOps.$converthfspathtoposixpath()

Function groupExecute on clientPlatform(s)
FileOpsNOAll

Syntax

FileOps.$converthfspathtoposixpath(cHfsPath,&cPosixPath)

Description

(macOS only) converts an HFS file path to a POSIX file path.

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"