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
This fails when you are going to Files.list() a Path returned from a Files.list() response:
valpath=Files
.list(basePath)
.filter(Files.isDirectory(_))
.sorted((a, b) => b.compareTo(a))
.filter(it =>Files.exists(it.resolve(successFileName)))
.findFirst()
Files.list(path.get) // This returns empty even if there are files in the "folder"
The text was updated successfully, but these errors were encountered:
The source of the problem seems to be that S3FileSystemProvider.checkAccess() calls HeadObject on S3. This only succeeds if the path points to an object. If the path is just a prefix (s3 Directory) then it will fail. A better solution might be to use client.listObjectsV2() and ensure that the path is included in the response.
getContainedObjectBatches
is filtering on:This fails when you are going to Files.list() a Path returned from a Files.list() response:
The text was updated successfully, but these errors were encountered: