Brian Duggan > Data-Downloader-0.9903 > Data::Downloader::Disk

Download:
Data-Downloader-0.9903.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Data-Downloader-0.9907

NAME ^

Data::Downloader::Disk

DESCRIPTION ^

Represents a disk for storing files.

METHODS ^

abs_path

Returns the absolute path of this disk.

blocks_available

Find the # of blocks available using df.

Parameters : block_size (default 1024)

bytes_taken

Find the number of bytes taken by data downloader (i.e. the sum of the sizes of the files on disk.

usage

When called as a class method, prints the usage across all disks. When called as an instance method, prints the usage for this particular disk.

Note that this is not the _actual_ usage (as reported by "du") but rather the sum of the sizes of the files.

SEE ALSO ^

"SCHEMA" in Data::Downloader

syntax highlighting: