Main > Programming > Libraries >

File::Size 0.06

File::Size 0.06

Sponsored Links

File::Size 0.06 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.003 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 920
Date added: 2007-04-30
Publisher: Ofer Shaked

File::Size 0.06 description



SYNOPSIS

Get the size for directory /etc/ with the block size of 1024 while following symbolic links:

my $obj = File::Size->new(
dir => /etc/,
blocksize => 1024,
followsymlinks => 1,
humanreadable => 1
);
print $obj->getsize(), "n";

File::Size is used to get the size of files and directories.

There are 6 methods you can use:

new

There are 4 optional hash values for the new() method:

dir

The directory you want the module to get the size for it. Default is current working directory.

blocksize

The blocksize for the output of getsize() method. default is 1 (output in bytes).

followsymlinks

If you want to follow symlinks for directories and files, use this option. The default is not to follow symlinks.

humanreadable

If you want output size in human readable format (e.g. 2048 -> 2.0K), set this option to 1.

You dont have to specify any of those options, which means this is okay:
print File::Size->new()->getsize(), " bytesn";

This is okay too:
print File::Size->new()->setdir( /etc/ )->setblocksize( 1024**2 )->getsize(), " MBn";

setdir

Used to set (or get - if called without parameters) the directory. Example: $obj->setdir( /etc/ );

setblocksize

Used to set (or get - if called without parameters) the block size. Example: $obj->setblocksize( 1024 );

setfollowsymlinks

Used to set if you want to follow symbolic links or not. If called without parmeters, returns the current state. Example: $obj->setfollowsymlinks( 1 );

sethumanreadable

Used to set (or get - if called without parameters) if you want human-readable output sizes. Example: $obj->sethumanreadable( 1 );

getsize

Used to calculate the total size of the directory. Prints output according to the block size you did or didnt specify.

File::Size 0.06 Screenshot

Advertisements

File::Size 0.06 Keywords

Bookmark File::Size 0.06

Hyperlink code:
Link for forum:

File::Size 0.06 Copyright

WareSeeker periodically updates pricing and software information of File::Size 0.06 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of File::Size 0.06 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
File Lister provides a Web interface for listing files and directories. Free Download
Filesys::DiskSpace is a Perl module as a df replacement. Free Download
File::Sort is a Perl module to sort a file or merge sort multiple files. Free Download
MP3::Find::Filesystem is a File::Find-based backend to MP3::Find. Free Download
AVI TV Episode File Resizer was made to fit (resize the file) multiple Xvid TV episodes (entire season) on a single DVD. Free Download
File::Remove is a Perl module to remove files and directories. Free Download
File Selection Language is a descriptive language for file selection. Free Download
File::FilterFuncs is a Perl module that specify filter functions for files. Free Download