Skip to content

Commit

Permalink
Fixed issues for path
Browse files Browse the repository at this point in the history
  • Loading branch information
giampieroferrara committed Dec 9, 2024
1 parent 6829195 commit 034db85
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,14 @@ public BlobProperties getProperties(String filePath) {
@Override
public List<String> getFiles(String path) {
log.debug("START - getFiles by given path: {}", path);
String sanitizePath = StringUtils.replace(path, "\n", StringUtils.EMPTY).replace("\r", StringUtils.EMPTY);
List<String> listOfResource = new ArrayList<>();
final BlobContainerClient blobContainer = blobClient.getBlobContainerClient(containerName);

if (StringUtils.isNotEmpty(path)) {
if (StringUtils.isNotEmpty(sanitizePath)) {

ListBlobsOptions options = new ListBlobsOptions()
.setPrefix(path)
.setPrefix(sanitizePath)
.setDetails(new BlobListDetails()
.setRetrieveDeletedBlobs(true)
.setRetrieveSnapshots(true));
Expand Down

0 comments on commit 034db85

Please sign in to comment.