Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.285.100 Times

File::Size 0.06

  Date Added: June 25, 2010  |  Visits: 881

File::Size

Report Broken Link
Printer Friendly Version


Product Homepage
Download (86 downloads)

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..

Requirements: No special requirements
Platforms: Linux
Keyword: Directory Files Filesize Libraries New Output Programming Size To Get To Set Used Used To
Users rating: 0/10

License: Freeware Size: 3.07 KB
FILE::SIZE RELATED
Libraries  -  AudioFile::Info::MP3::Tag 1.05
AudioFile::Info::MP3::Tag is a Perl extension to get info from MP3 files. This is a plugin for AudioFile::Info which uses MP3::Tag to get or set data about MP3 files. METHODS new Creates a new object of class AudioFile::Info::MP3::Tag....
3.07 KB  
Utilities  -  Dalle 0.7.7
Dalle aims to build a set of utilities to work with split files in various formats. Supported formats by Dalle are hacha (1, 2, and pro), kamaleon (1 and 2), FileSplit, and SplitFile..
69.63 KB  
E-Mail Tools  -  GmNotify 0.7.3
GmNotify is a tray applet that notifies you of new messages from Gmail and provides an easy mechanism to get to them. GmNotify will run in Gnome, KDE, and XFCE. I know, there are already a number of programs out there that provide this...
24.58 KB  
Web Browser Tools  -  django-cumulus 1.0.5
The aim of django-cumulus is to provide a set of tools to utilize Rackspace Cloud Files through Django. It currently includes a custom file storage class, CloudFilesStorage.
122.88 KB  
Development Tools  -  GETINUNITS 1.0
Have you ever created an object for your GUI using Normalized units, but wanted to get its position in Points to line up a text object according to the font size? Instead of SETting the Units property to Points, GETting the Position, and SETting...
10 KB  
Education  -  CCCC Mobile 1.2
Stay connected with Central Carolina Community College wherever you are. Learn how to get around campus, stay up-to-date with the latest campus news, access Blackboard Learn, find contact information in our directory, and much more. Its Central...
12.5 MB  
Productivity  -  Checklist Mate 1.0
A simple user friendly checklist to get you started quickly . - Tap + to add new Checklist/Item - Swipe to delete - Choose an icon for your list - Set a reminder for your to-do items/meetings, etc... Requirements: iOS...
307.2 KB  
Games  -  Endless Hanoi Tower 1.0
The best version of Hanoi Tower game ever is finally here, with brand new playing method to restore the order of your Hanoi Towers. In here, you dont have to move a set of tower to an appointed position. All you have to do is moving the...
2.9 MB  
MS Office Add-Ins  -  Free 3DPageFlip Doc to Image Converter 1.0
Free 3DPageFlip Doc to Image Converter: 3DPageFlip Doc to Image is totally free for doc to image generation. It's simple to use with Batch Convert Mode, Hot Directory Mode, and Command Line Mode. This sophisticated image files conversion utility...
2.1 MB  
Libraries  -  WebFS::FileCopy 1.04
WebFS::FileCopy is a Perl module to get, put, move, copy, and delete files located by URIs. SYNOPSIS use WebFS::FileCopy; my @res = get_urls(ftp://www.perl.com, http://www.netscape.com); print $res[0]->content if $res[0]->is_success; #...
22.53 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB