Net::Amazon::HadoopEC2::S3fs::Inode - A representation of Hadoop-ec2 s3fs inode.
use Net::Amazon::HadoopEC2::S3fs; my $fs = Net::Amazon::HadoopEC2::S3fs->new( { aws_access_key_id => $EVN{AWS_ACCESS_KEY_ID}, aws_secret_access_key => $ENV{AWS_SECRET_ACCESS_KEY}, bucket => 'your_bucket', } ); my $file = $fs->put( { file => 'filename', destination => '/user/root', } ); my $files_listed = $fs->ls( { path => '/user/root', } ); for my $file (@{$files_listed}) { $file->remove; }
Net::Amazon::HadoopEC2::S3fs::Inode is a representation of Hadoop-ec2 s3fs inode.
Puts the inode to the s3fs. If the inode is file, $file argument is required. Otherwise ( if the inode is directory, ) $file argument should not be passed.
Gets the file to the specified destination. Returns the file path saved on success, undef on failure. The Arguments are:
The local file path to save the s3fs file.
Removes the s3fs file/direcotry. Returns 1 on success, undef on failure.
Nobuo Danjou <nobuo.danjou@gmail.com>
Net::Amazon::HadoopEC2::S3fs
To install Net::Amazon::HadoopEC2::S3fs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Amazon::HadoopEC2::S3fs
CPAN shell
perl -MCPAN -e shell install Net::Amazon::HadoopEC2::S3fs
For more information on module installation, please visit the detailed CPAN module installation guide.