File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
apps/files_versions/lib/Listener Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1212use OC \Files \Filesystem ;
1313use OC \Files \Mount \MoveableMount ;
1414use OC \Files \Node \NonExistingFile ;
15+ use OC \Files \Node \NonExistingFolder ;
1516use OC \Files \View ;
1617use OCA \Files_Versions \Storage ;
1718use OCA \Files_Versions \Versions \INeedSyncVersionBackend ;
@@ -401,6 +402,24 @@ private function getPathForNode(Node $node): ?string {
401402 }
402403 }
403404
405+ if (!($ node instanceof NonExistingFile) && !($ node instanceof NonExistingFolder)) {
406+ $ this ->logger ->debug ('Failed to compute path for node ' , [
407+ 'node ' => [
408+ 'path ' => $ node ->getPath (),
409+ 'owner ' => $ owner ,
410+ 'fileid ' => $ node ->getId (),
411+ 'size ' => $ node ->getSize (),
412+ 'mtime ' => $ node ->getMTime (),
413+ ]
414+ ]);
415+ } else {
416+ $ this ->logger ->debug ('Failed to compute path for node ' , [
417+ 'node ' => [
418+ 'path ' => $ node ->getPath (),
419+ 'owner ' => $ owner ,
420+ ]
421+ ]);
422+ }
404423 return null ;
405424 }
406425}
You can’t perform that action at this time.
0 commit comments