Revision 9f2c4a7d
Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt
SL/Controller/File.pm | ||
---|---|---|
408 | 408 |
my $language = $::lx_office_conf{system}->{language}; |
409 | 409 |
my $timezone = $::locale->get_local_time_zone()->name; |
410 | 410 |
if (opendir my $dir, $path) { |
411 |
my @files = ( readdir $dir);
|
|
411 |
my @files = (readdir $dir); |
|
412 | 412 |
foreach my $file ( @files) { |
413 | 413 |
next if (($file eq '.') || ($file eq '..')); |
414 | 414 |
$file = Encode::decode('utf-8', $file); |
... | ... | |
430 | 430 |
}; |
431 | 431 |
|
432 | 432 |
} |
433 |
closedir($dir); |
|
434 |
|
|
435 |
} else { |
|
436 |
$::lxdebug->message(LXDebug::WARN(), "SL::File::_get_from_import opendir failed to open dir " . $path); |
|
433 | 437 |
} |
438 |
|
|
434 | 439 |
return @foundfiles; |
435 | 440 |
} |
436 | 441 |
|
Auch abrufbar als: Unified diff
S:C:File: Import (scanner): Debug-Warnung, wenn Verzeichnis nicht geöffnet werden kann