mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Merge branch 'OC1.3-MC1.6.4' of github.com:MightyPirates/OpenComputers
This commit is contained in:
commit
a3bedd9945
@ -81,6 +81,9 @@ object FileSystem extends api.detail.FileSystemAPI {
|
||||
|
||||
override def fromSaveDirectory(root: String, capacity: Long, buffered: Boolean) = {
|
||||
val path = new io.File(DimensionManager.getCurrentSaveRootDirectory, Settings.savePath + root)
|
||||
if (!path.isDirectory) {
|
||||
path.delete()
|
||||
}
|
||||
path.mkdirs()
|
||||
if (path.exists() && path.isDirectory) {
|
||||
if (buffered) new BufferedFileSystem(path, capacity)
|
||||
|
Loading…
x
Reference in New Issue
Block a user