The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

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