pathseparator(
FILEPATH
)

The pathseparator( function returns the type of separator character used in a file path (either / or :).


Parameters

This function has one parameter:

filepath – a combined path and file name. This may be either a UNIX path or an HFS path. (See Files and Folders for more information.)


Description

This function returns the type of separator character used in a file path (either / or :). If the path is a UNIX path, the function will return /. If the path is an HFS path, the function will return :.

pathseparator("/Users/patjohnson/Documents/Alaska/Denaly23.jpg") ☞ /
pathseparator("HD:Trips:Family:July4.jpg") ☞ :

If the path contains both / and : characters, this function will return whichever of these characters occurs first.

Note: This function is equivalent to:

stripchar(filepath,"//::")[1,1]

See Also


History

VersionStatusNotes
10.0NewNew in this version.