mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
runtests: make cleardir() erase dot files too
Because test cases might use dot files. Closes #5838
This commit is contained in:
parent
712d16cbe0
commit
d71ac6711a
@ -2716,7 +2716,7 @@ sub cleardir {
|
||||
opendir(DIR, $dir) ||
|
||||
return 0; # can't open dir
|
||||
while($file = readdir(DIR)) {
|
||||
if(($file !~ /^\./)) {
|
||||
if(($file !~ /^\.(|\.)$/)) {
|
||||
unlink("$dir/$file");
|
||||
$count++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user