Zoidberg::Utils::FileSystem(3pm)

Zoidberg::Utils::FileSystem3pm

Filesystem routines

Overview

This module contains a few routines dealing with files and/or directories. Mainly used to speed up searching $ENV{PATH} by "hashing" the filesystem.

Although when working within the Zoidberg framework this module should be used through the Zoidberg::Utils interface, it also can be used on it's own.

Export

By default none, potentially all functions listed below.

Functions

"path($file, $reference)"

Returns the absolute path for possible relative $file $reference is optional an defaults to $ENV{PWD}

"list_dir($dir)"

Returns list of content of dir. Does a lookup for the absolute path name and omits the '.' and '..' dirs.

"list_path()"

Returns a list of all items found in directories listed in $ENV{PATH}, non existing directories in $ENV{PATH} are silently ignored.

Todo

More usage of File::Spec ?

Releases

3 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0–5.0

Author

R.L. Zwart <[email protected]>

Jaap Karssenberg ⎪⎪ Pardus [Larus] <[email protected]>

Copyright (c) 2003 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From zoidberg 0.96-1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.