Skip to content

CloudStorageFileSystem: can not list content of root directory #2756

Description

@bitkid
CloudStorageFileSystem.forBucket("someBucket", CloudStorageConfiguration.builder().permitEmptyPathComponents(true).build()).use {
            println(Files.list(it.getPath(".")).toList().size) // prints 0 although there is a file in the bucket
        }

println(Files.list(it.getPath("/")).toList().size) throws an exception
java.lang.IllegalArgumentException: I/O not allowed on empty Google Cloud Storage object names.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions