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

File::Path 5.8.8

  Date Added: November 27, 2010  |  Visits: 1.009

File::Path

Report Broken Link
Printer Friendly Version


Product Homepage
Download (93 downloads)



File::Path is a Perl module to create or remove directory trees. SYNOPSIS use File::Path; mkpath([/foo/bar/baz, blurfl/quux], 1, 0711); rmtree([foo/bar/baz, blurfl/quux], 1, 1); The mkpath function provides a convenient way to create directories, even if your mkdir kernel call wont create more than one level of directory at a time. mkpath takes three arguments: the name of the path to create, or a reference to a list of paths to create, a boolean value, which if TRUE will cause mkpath to print the name of each directory as it is created (defaults to FALSE), and the numeric mode to use when creating the directories (defaults to 0777), to be modified by the current umask. It returns a list of all directories (including intermediates, determined using the Unix / separator) created. If a system error prevents a directory from being created, then the mkpath function throws a fatal error with Carp::croak. This error can be trapped with an eval block: eval { mkpath($dir) }; if ($@) { print "Couldnt create $dir: $@"; } Similarly, the rmtree function provides a convenient way to delete a subtree from the directory structure, much like the Unix command rm -r. rmtree takes three arguments: the root of the subtree to delete, or a reference to a list of roots. All of the files and directories below each root, as well as the roots themselves, will be deleted. a boolean value, which if TRUE will cause rmtree to print a message each time it examines a file, giving the name of the file, and indicating whether its using rmdir or unlink to remove it, or that its skipping it. (defaults to FALSE) a boolean value, which if TRUE will cause rmtree to skip any files to which you do not have delete access (if running under VMS) or write access (if running under another OS). This will change in the future when a criterion for delete permission under OSs other than VMS is settled. (defaults to FALSE) It returns the number of files successfully deleted. Symlinks are simply deleted and not followed. NOTE: There are race conditions internal to the implementation of rmtree making it unsafe to use on directory trees which may be altered or moved while rmtree is running, and in particular on any directory trees with any path components or subdirectories potentially writable by untrusted users. Additionally, if the third parameter is not TRUE and rmtree is interrupted, it may leave files and directories with permissions altered to allow deletion (and older versions of this module would even set files and directories to world-read/writable!) Note also that the occurrence of errors in rmtree can be determined only by trapping diagnostic messages using $SIG{__WARN__}; it is not apparent from the return value..

Requirements: No special requirements
Platforms: Linux
Keyword: Create Directories Directory False Filepath Libraries Module Perl Module Programming Remove Remove Directory Rmtree To Create True
Users rating: 0/10

License: Freeware Size: 12.2 MB
USER REVIEWS
More Reviews or Write Review


FILE::PATH RELATED
Libraries  -  PDL::Indexing 2.4.3
PDL::Indexing Perl module contains a tutorial on how to index piddles. This manpage should serve as a first tutorial on the indexing and threading features of PDL. This manpage is still in alpha development and not yet complete. "Meta"...
2.1 MB  
Libraries  -  Archive::Zip 1.20
Archive::Zip is a Perl module which provides an interface to ZIP archive files. SYNOPSIS # Create a Zip file use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); my $zip = Archive::Zip->new(); # Add a directory my $dir_member =...
174.08 KB  
Libraries  -  Log::Log4perl::JavaMap 1.11
Log::Log4perl::JavaMap is a Perl module that maps java log4j appenders to Log::Dispatch classes. SYNOPSIS ############################### log4j.appender.FileAppndr1 = org.apache.log4j.FileAppender log4j.appender.FileAppndr1.File =...
225.28 KB  
Libraries  -  Geography::States 2.1
Geography::States is a Perl module with map states and provinces to their codes, and vice versa. SYNOPSIS use Geography::States; my $obj = Geography::States -> new (COUNTRY [, STRICT]); EXAMPLES my $canada = Geography::States -> new...
6.14 KB  
Libraries  -  Tkx::Tutorial 1.04
Tkx::Tutorial Perl module contains a tutorial about how to use Tkx. Tk is a toolkit that allows you to create applications with graphical interfaces for Windows, Mac OS X and X11. The Tk toolkit is native to the Tcl programming language, but its...
24.58 KB  
Libraries  -  HTML::FormHighlight 0.03
HTML::FormHighlight Perl module can help you to highlights fields in an HTML form. SYNOPSIS use HTML::FormHighlight; my $h = new HTML::FormHighlight; print $h->highlight( scalarref => $form, fields => [ A, B, C ], ); print...
5.12 KB  
Libraries  -  DBIx::TableHash 1.05
DBIx::TableHash is a Perl module that can tie a hash to a mysql table + SQL utils. SYNOPSIS use DBIx::TableHash; my $DBHash = DBIx::TableHash->create_or_die (my $Params = { DBIDriver => mysql, Database => mydatabase, HostName =>...
17.41 KB  
Libraries  -  AnyData::Format::XML 0.10
AnyData::Format::XML is a Perl module for tiedhash and DBI access to XML. SYNOPSIS # access XML data via a multi-dimensional tied hash # see AnyData.pod for full details # use AnyData; my $table = adTie( XML, $file, $mode, $flags ); OR...
44.03 KB  
Libraries  -  Mail::Abuse 1.025
Mail::Abuse is a Perl module that helps parse and respond to miscellaneous abuse complaints. SYNOPSIS use Mail::Abuse; This module and the accompaining software can be used to automatically parse and respond to various formats of abuse...
92.16 KB  
Libraries  -  PDF::Reuse::Tutorial 0.11
PDF::Reuse::Tutorial is a Perl module that will teach you how to produce PDF-files with PDF::Reuse. In this tutorial I will show some aspects of PDF::Reuse, so you should be able to use it in your own programs. Most important is how to produce...
133.12 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 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