diff --git a/DriveBackup/src/main/java/ratismal/drivebackup/googledrive/GoogleDriveUploader.java b/DriveBackup/src/main/java/ratismal/drivebackup/googledrive/GoogleDriveUploader.java index 7da5acd3..170540c1 100644 --- a/DriveBackup/src/main/java/ratismal/drivebackup/googledrive/GoogleDriveUploader.java +++ b/DriveBackup/src/main/java/ratismal/drivebackup/googledrive/GoogleDriveUploader.java @@ -219,7 +219,7 @@ public void uploadFile(java.io.File file, String type) { parentFolder = service.files().insert(parentFolder).execute(); } - String[] typeFolders = type.split(java.io.File.separator); + String[] typeFolders = type.split(java.io.File.separator.replace("\\", "\\\\")); File childFolder = null; ParentReference childFolderParent = new ParentReference();