From 0220dde2134f4a139ff501169d6b47e6f0280d3f Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 31 Mar 2022 17:46:11 -0700 Subject: Try to be more conservative with #1093 to only cases where we are pretty sure it is backslashes instead of forward slashes --- app/src/main/java/github/daneren2005/dsub/util/FileUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java index 9fb39692..85786b12 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java +++ b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java @@ -695,7 +695,9 @@ public class FileUtil { } // 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, "-"); } -- cgit v1.2.3