logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

IO::All::FTP - Extends IO::All to FTP URLs

Authors

       Ivan Tubert-Brohman <itub@cpan.org> and Brian Ingerson <ingy@cpan.org>

Description

       This module extends IO::All for dealing with FTP URLs.  Note that you don't need to use it explicitly, as
       it is autoloaded by IO::All whenever it sees something that looks like an FTP URL.

Methods

       This is a subclass of IO::All::LWP. The only new method is "ftp", which can be used to create a blank
       IO::All::FTP object; or it can also take an FTP URL as a parameter. Note that in most cases it is simpler
       just to call io('ftp//example.com'), which calls the "ftp" method automatically.

Name

       IO::All::FTP - Extends IO::All to FTP URLs

Operator Overloading

       The same operators from IO::All may be used. < GETs an FTP URL; > PUTs to an FTP URL.

See Also

       IO::All::LWP, IO::All, LWP.

Synopsis

           use IO::All;

           "hello world\n" > io('ftp://localhost/test/x');  # save to FTP
           io('ftp//example.org/pub/xyz') > io('xyz');      # GET to file

           # two ways of getting a file with a password:
           $content < io('ftp://me:secret@example.org/xyz');
           $content < io('ftp://example.org/xyz')->user('me')->password('secret');

See Also