Follow symbolic links. Default is 0. Overrides symlink-size.
Get the size of a directory, recursively, following symbolic links:
|exclude => PATTERN||
Exclude files that match PATTERN.
Get the size of every file except for dot files:
Return sizes in human readable format (e.g., 1K 234M 2G)
Return sizes in human readable format, but use powers of 1000 instead
Return the results in a hash.
Sets the max-depth for recursion. A negative number means there is no
max-depth. Default is -1.
Get the size of every file in the directory and immediate subdirectories:
Sets whether directories are to be explored or not. Set to 0 if you
dont want recursion. Default is 1. Overrides max-depth.
Get the size of every file in the directory, but not directories:
|sector-size => NUMBER||
All file sizes are rounded up to a multiple of this number. Any file
that is not an exact multiple of this size will be treated as the next
multiple of this number as they would in a sector-based file system. Common
values will be 512 or 1024. Default is 1 (no sectors).
|show-warnings => 1 | 0||
Shows warnings when trying to open a directory that isnt readable.
1 by default.
|symlink-size => NUMBER||
Symlinks are assumed to be this size. Without this option, symlinks are
ignored unless dereferenced. Setting this option to 0 will result in the
files showing up in the hash, if make-hash is set, with a size of 0.
Setting this option to any other number will treat the size of the symlink
as this number. This option is ignored if the dereference option is
|truncate-readable => NUMBER||
Human readable formats decimal places are truncated by the value of
this option. A negative number means the result wont be truncated at
all. Default if 2.
Get the size of a file in human readable format with three decimal places:
Jose Castro, <firstname.lastname@example.org>
Copyright 2004 Jose Castro, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||FILESYS::DISKUSAGE (3)||2016-03-17|