Skip to content

Commit 0220dde

Browse files
committed
Try to be more conservative with #1093 to only cases where we are pretty sure it is backslashes instead of forward slashes
1 parent 7f07dc8 commit 0220dde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/github/daneren2005/dsub/util/FileUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,9 @@ private static String fileSystemSafeDir(String path) {
695695
}
696696

697697
// Airsonic 11 appears to be returning backslashes instead of always forcing path with forward slashes
698-
path = path.replace("\\", "/");
698+
if(!path.contains("/")) {
699+
path = path.replace("\\", "/");
700+
}
699701
for (String s : FILE_SYSTEM_UNSAFE_DIR) {
700702
path = path.replace(s, "-");
701703
}

0 commit comments

Comments
 (0)