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

Filesys::DfPortable 0.85

  Date Added: May 09, 2010  |  Visits: 928


Report Broken Link
Printer Friendly Version

Product Homepage
Download (79 downloads)

Filesys::DfPortable is a Perl extension for filesystem disk space information. SYNOPSIS use Filesys::DfPortable; my $ref = dfportable("C:"); # Default block size is 1, which outputs bytes if(defined($ref)) { print"Total bytes: $ref->{blocks}n"; print"Total bytes free: $ref->{bfree}n"; print"Total bytes avail to me: $ref->{bavail}n"; print"Total bytes used: $ref->{bused}n"; print"Percent full: $ref->{per}n" } my $ref = dfportable("/tmp", 1024); # Display output in 1K blocks if(defined($ref)) { print"Total 1k blocks: $ref->{blocks}n"; print"Total 1k blocks free: $ref->{bfree}n"; print"Total 1k blocks avail to me: $ref->{bavail}n"; print"Total 1k blocks used: $ref->{bused}n"; print"Percent full: $ref->{per}n" } This module provides a portable way to obtain filesystem disk space information. The module should work with all versions of Windows (95 and up), and with all flavors of Unix that implement the statvfs or the statfs calls. This would include Linux, *BSD, HP-UX, AIX, Solaris, Mac OS X, Irix, Cygwin, etc ... This module differs from Filesys::Df in that it has added support for Windows, but does not support open filehandles as a argument. dfportable() requires a directory argument that represents the filesystem you want to query. There is also an optional block size argument so that you can tailor the size of the values returned. The default block size is 1, this will cause the function to return the values in bytes. If you never use the block size argument, then you can think of any instance of "blocks" in this document to really mean "bytes". dfportable() returns a reference to a hash. The keys available in the hash are as follows: {blocks} = Total blocks on the filesystem. {bfree} = Total blocks free on the filesystem. {bavail} = Total blocks available to the user executing the Perl application. This can be different than {bfree} if you have per-user quotas on the filesystem, or if the super user has a reserved amount. {bavail} can also be a negative value because of this. For instance if there is more space being used then you have available to you. {bused} = Total blocks used on the filesystem. {per} = Percent of disk space used. This is based on the disk space available to the user executing the application. In other words, if the filesystem has 10% of its space reserved for the superuser, then the percent used can go up to 110%. You can obtain inode information through the module as well. But you must call exists() on the {files} key to make sure the information is available. Some filesystems may not return inode information, for example Windows, and some NFS filesystems. Here are the available inode keys: {files} = Total inodes on the filesystem. {ffree} = Total inodes free on the filesystem. {favail} = Total inodes available to the user executing the application. See the rules for the {bavail} key. {fused} = Total inodes used on the filesystem. {fper} = Percent of inodes used on the filesystem. See rules for the {per} key. If the dfportable() call fails for any reason, it will return undef. This will probably happen if you do anything crazy like try to get information for /proc, or if you pass an invalid filesystem name, or if there is an internal error. dfportable() will croak() if you pass it a undefined value..

Requirements: No special requirements
Platforms: Linux
Keyword: Block Size Blocks Dfportable Disk Space Filesysdfportable Filesystem Libraries Print Programming Space Total
Users rating: 0/10

License: Freeware Size: 7.17 KB
Miscellaneous  -  Generating combinations in blocks 1.0
Thisscript is yet another combination generator, with an extra twist: the generated combinations can be yielded in blocks of a given size. This comes useful (or necessary) when processing arbitrarily long or infinite iterables in bounded-size...
Libraries  -  File::Size 0.06
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";...
3.07 KB  
Utilities  -  FoldersReport 1.10
The FoldersReport utility scans a drive or a base folder that you select, and displays essential information for each folder that it finds: The size of all files inside the folder, The real files size on the disk, number of files inside the...
22 KB  
Backup Utilities  -  odirect 0.70
When reading a lot of data from disk or network filesystem, e.g. during a backup, buffer cache pollution can be a substantial performance problem for other processes on the machines involved due to buffer cache pollution. odirect is intended to...
16.38 KB  
Games  -  BLOCKS puzzle game
Blocks Puzzle game It's not a simple game, but it's really addictive. It won't let you get away from your phone for hours. Blocks puzzle game is a cross between clasic tangram and clasic tetris it's somethink like block...
10 MB  
Backup Utilities  -  Purge
Purge allows you to reclaim drive space quickly, by getting rid of space-wasting "garbage". Purge can remove *.bak,*.tmp files and zero-byte files. It can delete defective links, empty the tmp. directory and erase old browser-cache files. There is...
1.64 MB  
Screen Savers  -  Space Invader Screensaver 3.0
Cool Space Invaders screensaver, game screensaver, remake old space invaders remake game. This screensaver make as cool old game – space invaders. So here is - harmful space invaders, ironsides Tanks, are the same as in old game about invaders...
102.87 KB  
Virus Removers  -  AdvancedDiskClean 1.7
Advanced Disk Clean tool helps you free up space on your hard disk by searching your disk for files that you can safely delete. You can choose to delete some or all of the files. The main functions are: *Remove Files Stored on Your Hard Disk...
1.86 MB  
Communication  -  WSEdecomp 1.0
Split the signal S(SPACE,TIME) into its downward/upward space propagating and stationnary components via a 2D Fourier decomposition. S is a (SPACE,TIME) matrix. We eventually proceed to a space and/or time filtering. DT,DX are temporal and space...
10 KB  
Education  -  3D Space LE 1.00
All the pictures used by [3D Space LE(Lite Edition)] are the newest pictures photographed by Hubble Space Telescope which NASA launched to space. >From these pictures, the two images for left eye and right eye are created by right and left side...
8.8 MB  
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, 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.13.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