Synopsis|History

PathInfo Reference

Class methods

Obtain information from a path quickly.

name_of

Obtain a name from a reference to a file/folder.

basename_of

Obtain a name of the item with removing a path extension.Almost types of references to a file or a folder can be accepted. e.g.) HFS path, POSIX path, alias, file specification, reference form of Finder and furl.

path_extension_of

Obtain a path extension of the item. The result does not starts with ".".

split_name

Split a file name into a base name and a path extension.

folder_of

Obtain a folder path

Constructor Methods

make_with

Make a PathInfo instance for a file reference.

make_with_hfs

Make a PathInfo instance for a file reference.

make_with_posix

Make a PathInfo instance for a file reference. A synonym of make_with

Obtain path information

item_name

Obtain a name of the file or the folder.

basename

Obtain a name without path extension.

path_extension

Obtain a path extension of the file name. The result does not starts with ".".

volume_name

Obtain the volume name of the item referenced by the instance.

folder_ref

Obtain a file reference to the folder containing the target.

is_folder

Whether the target is a folder or not.

item_ref

Obtain an internal file reference which the target contains.

item_exists

Whether an item exits in the file sysem or not.

item_exists_without_update

Whether an item exits in the file sysem or not.

is_posix

If child and change_folder prefer posix path, true is returned.

Converting reference form

as_alias

Obtain a file reference as alias.

as_furl

Obtain a file reference as File URL.

posix_path

Obtain a file reference as POSIX path form.

normalized_posix_path

Obtain POSIX path which does not end with "/".

hfs_path

Obtain a file reference as HFS path form.

as_text

Obtain a path text.

Making a new instance from the instance

parent_folder

Obtain an instance of PathInfo referencing the folder containing the target.

change_name

Make a new PathInfo changing the item name.

change_path_extension

Make a new PathInfo changing the path extension.

change_folder

Make a new PathInfo changing the folder.

child

Make a new PathInfo appending a sub path.

clone

Make a new PathInfo which refering the same file to the target.

Error Numbers and Error Messages

Synopsis|History