ActiveState::DiskUsage(3)

NAME
ActiveState::DiskUsage - Calculate how much diskspace is used

SYNOPSIS
 use ActiveState::DiskUsage qw(du);
 print du(".") . " bytes allocated in current directory\n";

DESCRIPTION
This module provide a single function called du() that calculate the diskusage for the given file or directory. If the argument is a directory then the diskspace used by all its files and subdirectories are recursively counted as well. Symbolic links are not dereferenced.

The return value of the du() function is the number of bytes allocated.

The du() function is not exported by default.

BUGS
On Windows, this function only sum up the size of the files found at the given location. This number will be lower than the actual allocation as it does not take block allocation and space consumed by the directories themselves into account. The Win32::DirSize module might give more accurate results on this platform.

COPYRIGHT
Copyright (C) 2003 ActiveState Corp. All rights reserved.

SEE ALSO
ActiveState::Bytes