Package Info

perl-File-Path-Tiny


Recursive versions of mkdir() and rmdir() without as much overhead as Fi[cut]


Unspecified

The goal here is simply to provide recursive versions of mkdir() and rmdir() with as little code and overhead as possible.

This module is in no way meant to derogate File::Path and is in no way an endorsement to go out and replace all use of File::Path with File::Path::Tiny.

File::Path is very good at what it does but there's simply a lot happening that we can do without much of the time.

Here are some things File::Path has/does that this module attempts to do without:

    • multiple interfaces

Backwards compatibility brings in a lot of code and logic that we don't need from here on out.

    • chdir()s

It forces a ton of chdir()s which could leave you somewhere you're not planning on being and requires much more overhead to do.

This module provides a way to disable that if you know it is safe to do so in your circumstance.

    • can croak not allowing you to detect and handle failure

Just let me handle errors how I want. Don't make my entire app die or have to wrap it in an eval

The exception here is the security checks can croak, which is what you want. See DIAGNOSTICS for more info.

    • A well intentioned output system

Just let me do the output how I want. (Nothing, As HTML, print to a filehandle, etc...)

    • A well intentioned and experimental (IE subject to change) error
    handling system.

Just keep it simple and detect failure via a boolean check and do what I want with the error. See "How can I make/remove multiple paths?"

    • According to its POD, removing a tree is apparently not safe unless you
    tell it to be with the ‘safe’ or 'keep_root' attributes.

Seems like that should just happen, I don't want to worry about accidentally removing / when I pass it /tmp


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/File-Path-Tiny

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.0-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny
1.0-bp155.2.9 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny
1.0-bp154.1.18 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny
0.9-bp153.1.14 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny
0.9-bp152.3.13 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny
0.9-bp151.3.1 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny
0.9-bp151.2.12 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny
0.9-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-File-Path-Tiny