September 11 2017 File::Path Security Back

"Traditional" rmtree() Example

        $ prove -I./5004/lib -v fprmtree-trad.t
        fprmtree-trad.t ..
        Perl version:       5.026000
        File::Path version: 1.04
        subdir name:        29918_base
        ok 1 - created 1 subdirectory
        ok 2 - Directory /tmp/29918_base exists
        ok 3 - Created 8 subdirectories
        ok 4 - Directory /tmp/29918_base/foo_29918_0000 exists, starts life as 0775
        ok 5 - Able to create file /tmp/29918_base/foo_29918_0000/a
        ok 6 - Directory /tmp/29918_base/foo_29918_0100 exists, starts life as 0775
        ok 7 - Able to create file /tmp/29918_base/foo_29918_0100/a
        ok 8 - Directory /tmp/29918_base/foo_29918_0200 exists, starts life as 0775
        ok 9 - Able to create file /tmp/29918_base/foo_29918_0200/a
        ok 10 - Directory /tmp/29918_base/foo_29918_0300 exists, starts life as 0775
        ok 11 - Able to create file /tmp/29918_base/foo_29918_0300/a
        ok 12 - Directory /tmp/29918_base/foo_29918_0400 exists, starts life as 0775
        ok 13 - Able to create file /tmp/29918_base/foo_29918_0400/a
        ok 14 - Directory /tmp/29918_base/foo_29918_0500 exists, starts life as 0775
        ok 15 - Able to create file /tmp/29918_base/foo_29918_0500/a
        ok 16 - Directory /tmp/29918_base/foo_29918_0600 exists, starts life as 0775
        ok 17 - Able to create file /tmp/29918_base/foo_29918_0600/a
        ok 18 - Directory /tmp/29918_base/foo_29918_0700 exists, starts life as 0775
        ok 19 - Able to create file /tmp/29918_base/foo_29918_0700/a


Home Last TOC Copyright © 2017 James E Keenan Back Next