Skip to content

Commit

Permalink
fix: checkAccess on root
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Dec 3, 2022
1 parent 3e3376c commit c05ae17
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,10 @@ public void checkAccess(Path path, AccessMode... modes) throws IOException {
// Loop will terminate via an exception if all retries are exhausted
while (true) {
try {
// Edge case is the root directory which triggers the storage.get to throw a StorageException.
if (cloudPath.normalize().equals(cloudPath.getRoot())) {
return;
}
boolean nullId;
if (isNullOrEmpty(userProject)) {
nullId =
Expand Down

0 comments on commit c05ae17

Please sign in to comment.