projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a65dfe5
)
S:C:File: Import (scanner): Debug-Warnung, wenn Verzeichnis nicht geöffnet werden...
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 24 Feb 2021 12:38:56 +0000
(13:38 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 11 Mar 2021 08:31:38 +0000
(09:31 +0100)
SL/Controller/File.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/File.pm
b/SL/Controller/File.pm
index
a01e661
..
9458110
100644
(file)
--- a/
SL/Controller/File.pm
+++ b/
SL/Controller/File.pm
@@
-408,7
+408,7
@@
sub _get_from_import {
my $language = $::lx_office_conf{system}->{language};
my $timezone = $::locale->get_local_time_zone()->name;
if (opendir my $dir, $path) {
- my @files = (
readdir $dir);
+ my @files = (readdir $dir);
foreach my $file ( @files) {
next if (($file eq '.') || ($file eq '..'));
$file = Encode::decode('utf-8', $file);
@@
-430,7
+430,12
@@
sub _get_from_import {
};
}
+ closedir($dir);
+
+ } else {
+ $::lxdebug->message(LXDebug::WARN(), "SL::File::_get_from_import opendir failed to open dir " . $path);
}
+
return @foundfiles;
}