- new_file.setStoragePath(mLocalPaths[i]);
- File f = new File(URLDecoder.decode(mRemotePaths[i]));
- new_file.setParentId(storageManager.getFileByPath(f.getParent().endsWith("/")?f.getParent():f.getParent()+"/").getFileId());
+ new_file.setStoragePath(mLocalPaths[i]);
+ File f = new File(mRemotePaths[i]);
+ long parentDirId = storageManager.getFileByPath(f.getParent().endsWith("/")?f.getParent():f.getParent()+"/").getFileId();
+ new_file.setParentId(parentDirId);