September 11 2017 | File::Path Security | Back Next |
Program iterates over list of third-level subdirectories
Wraps system() call around each instance of rm -rf
Did system() call succeed (return 0)?
for my $alt (@altered) { my $rv = system(qq|rm -rf $alt|); Test::More::is($rv >> 8, 0, "Able to rm -rf $alt"); }
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |