Skip to content

Commit

Permalink
Allow directories to return FileAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
markjschreiber committed Jun 5, 2023
1 parent cc02ca5 commit bf14c03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ protected <A extends BasicFileAttributes> A readAttributes(S3AsyncClient s3Async
if (!(path instanceof S3Path))
throw new IllegalArgumentException("path must be an S3Path instance");
S3Path s3Path = (S3Path) path;
if (s3Path.isDirectory()) return null;
//if (s3Path.isDirectory()) return null;

if (type.equals(BasicFileAttributes.class) || type.equals(S3BasicFileAttributes.class)) {
if (s3AsyncClient == null) {
Expand Down

0 comments on commit bf14c03

Please sign in to comment.