Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
address cr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dwaijam committed Jun 20, 2018
1 parent 1003fe2 commit 560513f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void CreateDirectory(Uri directoryUri)
/// <returns>true if uri is for a directory else false</returns>
public bool IsDirectory(Uri uri)
{
var path = uri.AbsolutePath.Trim('/');
var path = uri.AbsolutePath.TrimStart('/');
const int maxBlobResults = 1;
var blobItems = _client.ListBlobsSegmented(path, false, BlobListingDetails.Metadata, maxBlobResults, null, null, null).Results;
return blobItems.Any() && blobItems.First() is CloudBlobDirectory;
Expand Down

0 comments on commit 560513f

Please sign in to comment.