getFileProper

Synopsis

$ getFileProper("path", "file", ...)

Concatenates all arguments into a single coherent path with appropriate separators.

Parameters

"path" - the path to start with

"file" - a file or subpath to concatenate to the first path

... - as many other subpaths/filenames as you like

Returns

The path resulting from all arguments joined together.

Examples

$path = getFileProper("/Users/raffi/", "fizz", "buzz/", "foo.txt"); println($path);

/Users/raffi/fizz/buzz/foo.txt

See Also