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:
fb2c3df
)
F:B:Webdav $path enthält Pfad + Datei, entsprechend vereinheitlicht
author
Jan Büren
<jan@kivitendo.de>
Tue, 23 Nov 2021 11:19:29 +0000
(12:19 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Tue, 23 Nov 2021 11:22:04 +0000
(12:22 +0100)
SL/File/Backend/Webdav.pm
patch
|
blob
|
history
diff --git
a/SL/File/Backend/Webdav.pm
b/SL/File/Backend/Webdav.pm
index
0e9525e
..
b1e48ed
100644
(file)
--- a/
SL/File/Backend/Webdav.pm
+++ b/
SL/File/Backend/Webdav.pm
@@
-73,7
+73,7
@@
sub get_mtime {
die "no dbfile" unless $params{dbfile};
$main::lxdebug->message(LXDebug->DEBUG2(), "version=" .$params{version});
my ($path, undef, undef) = $self->webdav_path($params{dbfile});
die "no dbfile" unless $params{dbfile};
$main::lxdebug->message(LXDebug->DEBUG2(), "version=" .$params{version});
my ($path, undef, undef) = $self->webdav_path($params{dbfile});
- die "
no file found in backend" if !
-f $path;
+ die "
No file found in Backend: " . $path unless
-f $path;
my @st = stat($path);
my $dt = DateTime->from_epoch(epoch => $st[9])->clone();
$main::lxdebug->message(LXDebug->DEBUG2(), "dt=" .$dt);
my @st = stat($path);
my $dt = DateTime->from_epoch(epoch => $st[9])->clone();
$main::lxdebug->message(LXDebug->DEBUG2(), "dt=" .$dt);
@@
-84,7
+84,7
@@
sub get_filepath {
my ($self, %params) = @_;
die "no dbfile" unless $params{dbfile};
my ($path, undef, undef) = $self->webdav_path($params{dbfile});
my ($self, %params) = @_;
die "no dbfile" unless $params{dbfile};
my ($path, undef, undef) = $self->webdav_path($params{dbfile});
- die "
Path not fou
nd: " . $path unless -f $path;
+ die "
No file found in Backe
nd: " . $path unless -f $path;
return $path;
}
return $path;
}