September 11 2017 | File::Path Security | Back Next |
We can remove each tree -- regardless of directory permissions!
ok 36 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0000 ok 37 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0100 ok 38 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0200 ok 39 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0300 ok 40 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0400 ok 41 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0500 ok 42 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0600 ok 43 - rmtree (traditional) removed 2 items: file; directory /tmp/29918_base/foo_29918_0700 1..43 ok All tests successful. Files=1, Tests=43, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.06 CPU) Result: PASS
Interface did not change, but now rmtree() is rm -rf on steroids!
Why?
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |