FileOps.$convertposixpathtohfspath()

Function groupExecute on clientPlatform(s)
FileOpsNOAll

Syntax

FileOps.$convertposixpathtohfspath(cPosixPath,&cHfsPath)

Description

(macOS only) converts a POSIX file path to an HFS 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, $convertposixpathtohfspath() simply copies cPosixPath to cHfsPath

Example

Do
 
FileOps
.
$convertposixpathtohfspath
(
"Applications/Calculator"
,
lHfsPath
)

# lHfsPath is returned as ":Applications:Calculator"