marinofaggiana 6 years ago
parent
commit
b4076ef247
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Networking/OCNetworking.m

+ 3 - 1
iOSClient/Networking/OCNetworking.m

@@ -1864,7 +1864,9 @@
                     trash.directory = itemDto.isDirectory;
                     trash.fileID = itemDto.ocId;
                     trash.fileName = itemDto.fileName;
-                    trash.filePath = itemDto.filePath;
+                    NSArray *array = [itemDto.filePath componentsSeparatedByString:path];
+                    long len = [[array objectAtIndex:0] length];
+                    trash.filePath = [itemDto.filePath substringFromIndex:len];
                     trash.size = itemDto.size;
                     trash.trashbinFileName = itemDto.trashbinFileName;
                     trash.trashbinOriginalLocation = itemDto.trashbinOriginalLocation;