WebFS::FileCopy

Description

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; # Get content from pages requiring basic authentication. my $req = LWP::Request->new(GET => http://www.dummy.com/); $req->authorization_basic(my_username, my_password); @res = get_urls($req); put_urls(put this text, ftp://ftp/incoming/new, file:/tmp/NEW); move_url(file:/tmp/NEW, ftp://ftp/incoming/NEW.1); delete_urls(ftp://ftp/incoming/NEW.1, file:/tmp/NEW); copy_url(http://www.perl.com/index.html, ftp://ftp.host/outgoing/SIG); copy_urls([file:/tmp/file1, http://www.perl.com/index.html], [file:/tmp/DIR1/, file:/tmp/DIR2, ftp://ftp/incoming/]); my @list1 = list_url(file:/tmp); my @list2 = list_url(ftp://ftp/outgoing/); This package provides some simple routines to read, move, copy, and delete files as references by string URLs, URI objects or URIs embedded in HTTP::Reqeust or LWP::Request objects. All subroutines in this package that expect a URI will accept a string, a URI object, or a HTTP::Reqeust or LWP::Request with an embedded URI. If passed a HTTP::Request or LWP::Request, then the method of the object is ignored and the proper method will be used to either GET or PUT the requested UIR. The distinction between files and directories in a URI is tested by looking for a trailing / in the path. If a trailing / exists, then the URI is considered to point to a directory, otherwise it is a file. All of the following subroutines are exported to the users namespace automatically. If you do not want this, then require this package instead of useing it..

Webfs - Filecopy - Lwp - New - Http - Delete Files - To Get - Perl Module - Copy - Uri - Urls - Files - Delete - Url - Webfsfilecopy

Published By:Blair Zajac

License Type:Freeware

Date Added:22 October, 2010

Version:1.04

Price:Free

Downloads:89

Size:22.5 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Crypt::SSLeay is a Perl module for OpenSSL glue that provides LWP https support. SYNOPSIS lwp-request https://www.nodeworks.com use LWP::UserAgent; my $ua = new LWP::UserAgent; my $req = new HTTP::Request(GET, https://www.nodeworks.

DateSep 24, 2010

AuthorJoshua Chamas

Size0

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Bundle::Colloquy::BotBot2 is a bundle to install all modules required for BotBot2.

DateAug 17, 2010

AuthorNicola Worthington

Size6.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Bio::Tree::NodeNHX is a Simple Tree Node with support for NHX tags.

DateAug 29, 2010

AuthorAaron Mackey

Size4.7 MB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

SBAM (Software Based Abled Mixer) is a new approach to computer-based DJing. SBAM stands for Software Based Abled Mixer. This project aims to help DJs concentrate about the important aspects of DJing, and to decrease the stress factor.

DateAug 7, 2010

Authoraasimon

Size307.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Audio

Cafeterra provides a message queue-based EAI tool. Cafeterra is a message queue-based EAI project with a Web user interface for designing, processing, and monitoring inter-application data flows.

DateSep 14, 2010

AuthorAbdellaziz TALEB

Size747.5 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming