Skip to content

Commit 5d567a8

Browse files
normalize location
1 parent 4688e6c commit 5d567a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DriveBackup/src/main/java/ratismal/drivebackup/uploaders/onedrive/OneDriveUploader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void test(File testFile) {
128128
public void uploadFile(File file, String location) {
129129
try {
130130
String destinationRoot = normalizePath(ConfigParser.getConfig().backupStorage.remoteDirectory);
131-
String destinationPath = concatPath(destinationRoot, location);
131+
String destinationPath = concatPath(destinationRoot, normalizePath(location));
132132
FQID destinationId = createPath(destinationPath);
133133
String uploadURL = createUploadSession(file.getName(), destinationId);
134134
try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {

0 commit comments

Comments
 (0)