Skip to content

Commit

Permalink
Merge pull request #2385 from microsoft/wangmi/code-completion
Browse files Browse the repository at this point in the history
fix resource type name of blob file/share file.
  • Loading branch information
wangmingliang-ms authored Oct 23, 2023
2 parents f0b14b3 + dac0c12 commit b70ee34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,10 @@ public BlobContainer getContainer() {
public boolean isDirectory() {
return this.remoteOptional().map(r -> BooleanUtils.isTrue(r.isPrefix())).orElse(false);
}

@Nonnull
@Override
public String getResourceTypeName() {
return isDirectory() ? "Directory" : super.getResourceTypeName();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,10 @@ public String getUrl() {
}
return this.isDirectory() ? parentClient.getSubdirectoryClient(this.getName()).getDirectoryUrl() : parentClient.getFileClient(this.getName()).getFileUrl();
}

@Nonnull
@Override
public String getResourceTypeName() {
return isDirectory() ? "Directory" : super.getResourceTypeName();
}
}

0 comments on commit b70ee34

Please sign in to comment.