Codebase list libfile-path-tiny-perl / fresh-snapshots/main
New upstream snapshot. Debian Janitor 1 year, 3 months ago
7 changed file(s) with 21 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
00 Revision history for File-Path-Tiny
1
2 1.0 2021-02-04 13:53:54
3 - rt 125502: fix empty_dir() fast-mode, thanks ishigaki!
4 - f749173 Stop using bareword handle (still ::Tiny since perl is newer)
51
62 0.9 2017-12-29 16:17:42
73 - Do chdir() for security reasons by default
2420
2521 0.5 2012-09-06 07:38:06
2622 rt 79472 (thanks Lachlan!) fix absolute path bug introduced in 0.4
27
23
2824 0.4 2012-09-03 17:50:41
2925 rt 79345 (thanks Gian!): Failed to recursively create dir if the first part solves to false
3026
33 "Daniel Muey <http://drmuey.com/cpan_contact.pl>"
44 ],
55 "dynamic_config" : 1,
6 "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150001",
6 "generated_by" : "ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010",
77 "license" : [
88 "perl_5"
99 ],
1010 "meta-spec" : {
1111 "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
12 "version" : "2"
12 "version" : 2
1313 },
1414 "name" : "File-Path-Tiny",
1515 "no_index" : {
4040 }
4141 },
4242 "release_status" : "stable",
43 "version" : "1.0"
43 "version" : 0.9,
44 "x_serialization_backend" : "JSON::PP version 4.07"
4445 }
66 configure_requires:
77 ExtUtils::MakeMaker: '0'
88 dynamic_config: 1
9 generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150001'
9 generated_by: 'ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010'
1010 license: perl
1111 meta-spec:
1212 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2222 File::Temp: '0'
2323 Test::Exception: '0'
2424 Test::More: '0'
25 version: '1.0'
25 version: 0.9
26 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
0 File-Path-Tiny version 1.0
0 File-Path-Tiny version 0.9
11
22 DOCUMENTATION
33
0 libfile-path-tiny-perl (1.0+git20171229.1.333ebe4-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Thu, 19 Jan 2023 14:43:40 -0000
5
06 libfile-path-tiny-perl (1.0-1) unstable; urgency=medium
17
28 [ Salvatore Bonaccorso ]
44 use Cwd qw(cwd chdir);
55 use Carp ();
66
7 $File::Path::Tiny::VERSION = "1.0";
7 $File::Path::Tiny::VERSION = 0.9;
88
99 sub mk {
1010 my ( $path, $mask ) = @_;
5656 _bail_if_changed( $path, $orig_dev, $orig_ino );
5757 }
5858
59 opendir( my $dh, $path ) or return;
60 my @contents = grep { $_ ne '.' && $_ ne '..' } readdir($dh);
61 closedir $dh;
59 opendir( DIR, $path ) or return;
60 my @contents = grep { $_ ne '.' && $_ ne '..' } readdir(DIR);
61 closedir DIR;
6262 _bail_if_changed( $path, $orig_dev, $orig_ino );
6363
6464 require File::Spec if @contents;
6666 my $long = File::Spec->catdir( $path, $thing );
6767 if ( !-l $long && -d _ ) {
6868 _bail_if_changed( $path, $orig_dev, $orig_ino );
69 rm( $long, $fast ) or !-e $long or return;
69 rm($long) or !-e $long or return;
7070 }
7171 else {
7272 _bail_if_changed( $path, $orig_dev, $orig_ino );
55
66 =head1 VERSION
77
8 This document describes File::Path::Tiny version 1.0
8 This document describes File::Path::Tiny version 0.9
99
1010 =head1 SYNOPSIS
1111