X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a051b91b24b34b5586761b237b5eda38e8c83f92..c9b4e6bc629fb185b380cda69bca5d3460bc58e0:/SL/File/Backend/Filesystem.pm?ds=sidebyside diff --git a/SL/File/Backend/Filesystem.pm b/SL/File/Backend/Filesystem.pm index fe8604c0b..68263b88e 100644 --- a/SL/File/Backend/Filesystem.pm +++ b/SL/File/Backend/Filesystem.pm @@ -78,9 +78,11 @@ sub get_mtime { my ($self, %params) = @_; die "no dbfile" unless $params{dbfile}; die "unknown version" if $params{version} && - ($params{version} < 0 || $params{version} > $params{dbfile}->backend_data) ; - my $path = $self->_filesystem_path($params{dbfile},$params{version}); - die "no file found in backend get_mtime" if !-f $path; + ($params{version} < 0 || $params{version} > $params{dbfile}->backend_data); + my $path = $self->_filesystem_path($params{dbfile}, $params{version}); + + die "No file found at $path. Expected: $params{dbfile}{file_name}, file.id: $params{dbfile}{id}" if !-f $path; + my @st = stat($path); my $dt = DateTime->from_epoch(epoch => $st[9])->clone(); return $dt;