Skip to content

createDirectory() with empty path ("") #134

@stefanofornari

Description

@stefanofornari

in S3FileSystemProvider.createDirecotry()

String directoryKey = s3Path.toRealPath(NOFOLLOW_LINKS).getKey();
if (!directoryKey.endsWith(S3Path.PATH_SEPARATOR) && !directoryKey.isEmpty()) {
directoryKey = directoryKey + S3Path.PATH_SEPARATOR;
}

we may throw an exception if Path.getKey() returns an empty (the root) string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions