From 74b9f5dcb0a2f441d87212af9fe0ce6d282ba7cf Mon Sep 17 00:00:00 2001 From: Bluenaxela Date: Mon, 24 Aug 2020 23:55:24 -0700 Subject: [PATCH] Fix FileSystemWrapperMount.isDirectory() Pretty sure FileSystemWrapperMount.isDirectory() should call Filesystem.isDir(), not Filesystem.exists() --- .../computercraft/core/filesystem/FileSystemWrapperMount.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapperMount.java b/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapperMount.java index 40e4634d8..f22e33654 100644 --- a/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapperMount.java +++ b/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapperMount.java @@ -124,7 +124,7 @@ public boolean isDirectory( @Nonnull String path ) throws IOException { try { - return m_filesystem.exists( path ); + return m_filesystem.isDir( path ); } catch( FileSystemException e ) {