Skip to content

Commit

Permalink
Try to be more conservative with #1093 to only cases where we are pre…
Browse files Browse the repository at this point in the history
…tty sure it is backslashes instead of forward slashes
  • Loading branch information
daneren2005 committed Apr 1, 2022
1 parent 7f07dc8 commit 0220dde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,9 @@ private static String fileSystemSafeDir(String path) {
}

// Airsonic 11 appears to be returning backslashes instead of always forcing path with forward slashes
path = path.replace("\\", "/");
if(!path.contains("/")) {
path = path.replace("\\", "/");
}
for (String s : FILE_SYSTEM_UNSAFE_DIR) {
path = path.replace(s, "-");
}
Expand Down

0 comments on commit 0220dde

Please sign in to comment.