Archive-Libarchive
view release on metacpan or search on metacpan
lib/Archive/Libarchive/API.pm view on Meta::CPAN
$e->copy_sourcepath($string);
=head2 copy_sourcepath_w
# archive_entry_copy_sourcepath_w
$e->copy_sourcepath_w($wstring);
=head2 copy_stat
# archive_entry_copy_stat
$e->copy_stat($stat);
Copies the values from a L<FFI::C::Stat> instance.
Not currently implemented on Windows.
=head2 copy_symlink
# archive_entry_copy_symlink
$e->copy_symlink($string);
lib/Archive/Libarchive/Entry.pm view on Meta::CPAN
=head2 xattr_next
# archive_entry_xattr_next
my $int = $e->xattr_next(\$name, $value);
Fetches the next xattr name/value pair.
=head2 copy_stat
# archive_entry_copy_stat
$e->copy_stat($stat);
Copies the values from a L<FFI::C::Stat> instance.
Not currently implemented on Windows.
=head2 stat
# archive_entry_stat
my $stat = $e->stat;
t/archive_libarchive_entry.t view on Meta::CPAN
# https://github.com/uperl/Archive-Libarchive/issues/19
skip_all 'not implemented on windows'
if $^O eq 'MSWin32';
require FFI::C::Stat;
my $e = Archive::Libarchive::Entry->new;
my $stat = FFI::C::Stat->new(__FILE__);
try_ok { $e->copy_stat($stat) };
is( $e->size, $stat->size );
my $stat2;
try_ok { $stat2 = $e->stat };
try_ok { is( $stat2->size, $stat->size ) };
};
subtest 'clone' => sub {
( run in 1.268 second using v1.01-cache-2.11-cpan-49f99fa48dc )