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 30.155.065 Times

File::Size 0.06

  Date Added: June 25, 2010  |  Visits: 850

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  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
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...
2.73 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