mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
fixed zip file system caching for different file systems from the same archive
This commit is contained in:
parent
a5e7ffa3bb
commit
e3db6d06b9
@ -66,7 +66,7 @@ object ZipFileInputStreamFileSystem {
|
||||
build[String, ArchiveDirectory]()
|
||||
|
||||
def fromFile(file: io.File, innerPath: String) = this.synchronized {
|
||||
Option(cache.get(file.getPath, new Callable[ArchiveDirectory] {
|
||||
Option(cache.get(file.getPath + ":" + innerPath, new Callable[ArchiveDirectory] {
|
||||
def call = try {
|
||||
val zip = new ZipFile(file.getPath)
|
||||
val cleanedPath = innerPath.stripPrefix("/").stripSuffix("/") + "/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user