You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We ran into an issue where we created a new directory using FileSystem.mkdirs. We wanted to verify that it exists through FileSystem.getFileStatus(..) which resulted in a FileNotFoundException for the Presto S3 FileSystem because the implementation checks for objects having the given prefix. FileSystem.exists(..) works around it by catching the FileNotFoundException.
It looks like the API is inconsistent in handling empty directories here which shouldn't be the case in my opinion.
The text was updated successfully, but these errors were encountered:
We ran into an issue where we created a new directory using
FileSystem.mkdirs
. We wanted to verify that it exists throughFileSystem.getFileStatus(..)
which resulted in aFileNotFoundException
for the Presto S3 FileSystem because the implementation checks for objects having the given prefix.FileSystem.exists(..)
works around it by catching theFileNotFoundException
.It looks like the API is inconsistent in handling empty directories here which shouldn't be the case in my opinion.
The text was updated successfully, but these errors were encountered: