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

File::Path 5.8.8

  Date Added: November 27, 2010  |  Visits: 687

File::Path

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 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
FILE::PATH RELATED
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  Class::Adapter::Builder 1.02
Class::Adapter::Builder is a Perl module that can generate Class::Adapter classes. SYNOPSIS package My::Adapter; use strict; use Class::Adapter::Builder ISA => Specific::API, METHODS => [ qw{foo bar baz} ], method => different_method;...
24.58 KB  
Libraries  -  App::Modular 0.1.2
App::Modular is a Perl module with modularization framework for perl programs. SYNOPSIS package App::Modular::Module::Test; use base qw(App::Modular::Module); sub say_hello { print "Hello, dear user!"; }; package main; use...
16.38 KB  
Libraries  -  Syntax::Highlight::Perl 1.0
Syntax::Highlight::Perl is a Perl module that can highlight Perl Syntactical Structures. SYNOPSIS # simple procedural use Syntax::Highlight::Perl :BASIC; # or :FULL print format_string($my_string); # OO use Syntax::Highlight::Perl; my...
33.79 KB  
Libraries  -  Inline::SLang::Changes 1.00
Inline::SLang::Changes is a Perl module with changes to previous versions of the module. Inline::SLang lets you write Perl subroutines in S-Lang. It dynamically translates the parameters and return values into native data types for both...
112.64 KB  
Libraries  -  Net::LDAP::FAQ 0.34
Net::LDAP::FAQ is a Perl module with Frequently Asked Questions about Net::LDAP. SYNOPSIS perldoc Net::LDAP::FAQ This document serves to answer the most frequently asked questions on both the perl-ldap Mailing List and those sent to Graham...
256 KB  
Libraries  -  HPUX::SDUX 0.03
HPUX::SDUX is a Perl module for creating SD-UX software depots of Perl modules. SYNOPSIS perl -MHPUX::SDUX -e wmf make; make test; make depot HPUX::SDUX is a Perl module to assist creating SD-UX software depots for Perl modules on HP-UX. As...
5.12 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Network & Internet  -  mod_musicindex 1.2.0 RC1
mod_musicindex is an Apache module initially aimed at being a C implementation of the Perl module Apache::MP3 (http://search.cpan.org/dist/Apache-MP3/). It allows nice displaying of directories containing MP3, FLAC, Ogg Vorbis or MP4/AAC files,...
450.56 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