make_with

make_with(a_path)

Make a PathInfo instance for a file reference.

If a parameter is text and does not starts with "/", a parameter is HFS path. And HFS path is used for internal processings. Otherwise, a POSIX path is userd for internal processings.

If a path ending with a path delimiter ("/" or ":") is passed as a parameter, the item is considered as a folder i.e. is_folder will return true.

Parameters
Result

script object : A new instance of PathInfo