|
NameConnector::Proxy::Net::FTPDescriptionRead/Write files to/from a remote host using FTP.LOCATION is the only mandatory parameter, if neither file nor path is set, the file is constructed from the arguments given to the method call. Parameters
Supported MethodssetWrite data to a file.$conn->set('filename', { NAME => 'John Doe', 'ROLE' => 'Administrator' }); See the file parameter how to control the filename. getFetch data from a file. See the file parameter how to control the filename.my $data = $conn->set('filename'); get_keysReturn the file names in the given directory. Examplemy $conn = Connector::Proxy::Net::FTP->new({ LOCATION => 'localhost', file => '[% ARGS.0 %].txt', basedir => '/var/data/', content => ' Hello [% NAME %]', }); $conn->set('test', { NAME => 'John Doe' }); Results in a file /var/data/test.txt with the content Hello John Doe. A note on securityTo enable the scp transfer, the file is created on the local disk using tempdir/tempfile. The directory is created with permissions only for the current user, so no other user than root and yourself is able to see the content. The tempfile is cleaned up immediatly, the directory is handled by the internal garbage collection.
Visit the GSP FreeBSD Man Page Interface. |