add test cases

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-10-01 10:45:09 +02:00
parent 6184fcd5ae
commit 9c1fedb14b
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -174,8 +174,8 @@ public final class FileStorageUtils {
} }
// Path must be normalized; otherwise the next RefreshFolderOperation has a mismatch and deletes the local file. // Path must be normalized; otherwise the next RefreshFolderOperation has a mismatch and deletes the local file.
return (remotePath + OCFile.PATH_SEPARATOR + subPath + return (remotePath + OCFile.PATH_SEPARATOR + subPath + (fileName == null ? "" : fileName))
(fileName == null ? "" : fileName)).replaceAll(OCFile.PATH_SEPARATOR + "+", OCFile.PATH_SEPARATOR); .replaceAll(OCFile.PATH_SEPARATOR + "+", OCFile.PATH_SEPARATOR);
} }