home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeJava and XSLTSearch this book

8.106. File::Spec::Unix

File::Spec for Unix. Provides methods for File::Spec to use in manipulating file specifications.

canonpath

File::Spec->canonpath

Does logical cleanup of path.

catdir

File::Spec->catdir(dir[, dir...])

Concatenates two or more directory names to form a complete path. Ends with a directory name.

catfile

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.

curdir

File::Spec->curdir

Returns ., representing the current directory.

file_name_is_absolute

File::Spec->file_name_is_absolute(path)

Takes a path as argument and returns true if it is an absolute path.

join

File::Spec->join(dir[, dir...], file)

Same as catfile.

no_upwards

File::Spec->no_upwards(files)

Strips names of files referring to a parent directory from a list of filenames. Doesn't strip symbolic links.

path

File::Spec->path

Returns the PATH environment variable as an array.

rootdir

File::Spec->rootdir

Returns /, representing the root directory.

updir

File::Spec->updir

Returns .., representing the parent directory.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.