8.104. File::Spec::Mac
File::Spec->canonpath Nothing to do; returns what it's given.
File::Spec->catdir(dir[, dir...]) Concatenates two or more directory names to form a complete path. Ends with a directory name and appends a trailing : if there isn't one. You can get a relative path by either beginning the first argument with : or putting "" as the first argument.
File::Spec->catfile(dir[, dir...], file) Concatenates one or more directory names and a filename to form a complete path that ends with a filename. Uses catdir.
File::Spec->curdir Returns string representing the current directory.
File::Spec->file_name_is_absolute(path) Takes a path as argument and returns true if it is an absolute path.
File::Spec->path Returns null list for MacPerl applications, or $ENV{Commands}, suitably split, for the MacPerl tool under MPW.
File::Spec->rootdir Returns string representing the root directory. Under MacPerl, returns the name of the startup volume.
File::Spec->updir Returns string representing the parent directory. Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|