[libbluray-devel] [PATCH] Fix creation of cache (sub-)directories on windows platforms

Andreas Zelend ace at kodi.tv
Sun Jul 2 20:48:42 CEST 2017


From: ace20022 <ace20022 at ymail.com>

---
 src/libbluray/bdj/java/org/videolan/VFSCache.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/videolan/VFSCache.java b/src/libbluray/bdj/java/org/videolan/VFSCache.java
index 08f7b2f9..e0b495fd 100644
--- a/src/libbluray/bdj/java/org/videolan/VFSCache.java
+++ b/src/libbluray/bdj/java/org/videolan/VFSCache.java
@@ -294,7 +294,7 @@ class VFSCache {
         String[] names = Libbluray.listBdFiles(relPath, true);
         if (names != null) {
             /* this is directory. Make sure it exists. */
-            Libbluray.cacheBdRomFile(relPath + "/", cacheRoot + relPath + "/");
+            Libbluray.cacheBdRomFile(relPath + File.separator, cacheRoot + relPath + File.separator);
             return;
         }
 
-- 
2.12.0.windows.1



More information about the libbluray-devel mailing list