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

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

Serving Software Downloads in 956 Categories, Downloaded 50.324.348 Times

File::Size 0.06

  Date Added: June 25, 2010  |  Visits: 1.321

File::Size

Report Broken Link
Printer Friendly Version


Product Homepage
Download (105 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
USER REVIEWS
More Reviews or Write Review


FILE::SIZE RELATED
Database Tools  -  Web Server Backup 1.0
This package can be used to generate backup copies of Web server directory files and MySQL databases. It uses a separate class to generate a backup archive in ZIP format of a given directory.Another class is used to take a backup of a given MySQL...
10 KB  
Graphical Text Tools  -  Batch Word To JPG Converter 1.1
Batch WORD to JPG Converter is a free windows software tool that fast converts Word Doc, Docx, RTF, HTML, ODT files to image formats like JPG, PNG, BMP, TIF, GIF, PCX and TGA in bulk. It also allows you to set the output image size.You can simply...
8.1 MB  
File Cataloguers  -  MakeDirDiff 1.4
MakeDirDiff is a simple command line tool for finding differences between two directories and storing all new/updates files in a new directory. MakeDirDiff compares two directories and creates the third directory with the first directory...
1.27 MB  
Utilities  -  Clean Temperary Directory New
Clean Temperary Directory is designed using the Java programming language in order to help you clean the temporary browser folder(%TEMP%). You do not need to give any input parameters for the program to run. You just copy this .JAR file on your...
 
FTP Clients  -  Batchput 0.9.4
Batchput transfers files from a local directory, matching the regex you specify, to an FTP server. Written in Python, the program is focused on doing this safely and efficiently, using per-directory locking and a single ftp session. Batchput...
12.29 KB  
Libraries  -  File::Remote 1.17
File::Remote is a Perl module to read/write/edit remote files transparently. SYNOPSIS # # Two ways to use File::Remote # # First, the function-based style. Here, we can use the # special :replace tag to overload Perl builtins! # use...
15.36 KB  
Security Tools  -  Directory Password Security 1.1
Directory Password Security is a handy utility designed to apply passwords on directories or files. Once the directory or file is locked, it can not be accessed until correct password is put. This application can be used to protect the sensitive...
 
Link Indexing  -  Web Files Viewer 1.2
Web Files Viewer is a simple php file to put in your root public documents directory to make them available on the web. It shows previews of pictures as thumbnails and display all the links needed. It is fully configurable.The script could be...
 
Link Indexing  -  Web Files Viewer for Scripts 1.2
Web Files Viewer is a simple php file to put in your root public documents directory to make them available on the web.It shows previews of pictures as thumbnails and display all the links needed. It is fully configurable.The script could be...
51.2 KB  
Audio Tools  -  ChucK 1.2.0.6
ChucK is a new audio programming language for real-time synthesis, composition, and performance - fully supported on MacOS X, Windows, and Linux. ChucK presents a new time-based concurrent programming model, which supports a highly precise and...
1.5 MB  
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 4.0.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...
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