---
name: "Zoidberg::Utils::FileSystem"
section: "3pm"
platform: "linux"
package: "zoidberg"
version: "0.96-1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Zoidberg::Utils::FileSystem"
---

# Zoidberg::Utils::FileSystem(3pm)

Filesystem routines

## NAME

Zoidberg::Utils::FileSystem - Filesystem routines

## DESCRIPTION

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 ?

## AUTHOR

R.L. Zwart \<rlzwart@cpan.org\>

Jaap Karssenberg ⎪⎪ Pardus \[Larus\] \<pardus@cpan.org\>

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.

## SEE ALSO

Zoidberg, Zoidberg::Utils
