fixed the test problem
This commit is contained in:
parent
5c62975421
commit
ba72915167
1 changed files with 1 additions and 2 deletions
|
|
@ -384,8 +384,7 @@ sub delete {
|
|||
rmtree($path) if ($path);
|
||||
foreach my $subDir ($self->{_part1}.'/'.$self->{_part2}, $self->{_part1}) {
|
||||
my $uDir = $self->session->config->get('uploadsPath') . '/' . $subDir;
|
||||
my $DH;
|
||||
opendir $DH, $uDir;
|
||||
opendir my ($DH), $uDir;
|
||||
if (defined $DH) {
|
||||
my @dirs = grep { !/^\.+$/ } readdir($DH);
|
||||
if (scalar @dirs == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue