[libbluray-devel] MountManager: fixed mounting jars with deep directory paths
hpi1
git at videolan.org
Mon Mar 11 14:07:54 CET 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 11 11:14:38 2013 +0200| [a37fb06cb620424bf9351e1c49c4bf794635d2f0] | committer: hpi1
MountManager: fixed mounting jars with deep directory paths
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a37fb06cb620424bf9351e1c49c4bf794635d2f0
---
src/libbluray/bdj/java/org/videolan/MountManager.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bdj/java/org/videolan/MountManager.java b/src/libbluray/bdj/java/org/videolan/MountManager.java
index e461cb3..b80b9f7 100644
--- a/src/libbluray/bdj/java/org/videolan/MountManager.java
+++ b/src/libbluray/bdj/java/org/videolan/MountManager.java
@@ -71,8 +71,11 @@ public class MountManager {
File out = new File(tmpDir + File.separator + entry.getName());
if (entry.isDirectory()) {
- out.mkdir();
+ out.mkdirs();
} else {
+ /* make sure path exists */
+ out.getParentFile().mkdirs();
+
InputStream inStream = jar.getInputStream(entry);
OutputStream outStream = new FileOutputStream(out);
More information about the libbluray-devel
mailing list