You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the most efficient way to count under a folder?
Using Count after ListAsync doesn't seem to be a very elegant approach, as it reads a lot of metadata from the file - even if I only need a single count number.
The text was updated successfully, but these errors were encountered:
/// <summary>/// Returns the count of available blobs/// </summary>/// <param name="cancellationToken"></param>/// <returns>Count of blobs</returns>Task<int>CountAsync(stringfullPath,CancellationTokencancellationToken=default);
For most cases, count is no need to do recursively. As expected, is should only access one folder blob.
NOTE: maybe an option for count Regular Files or Folders or both of them.
What's the most efficient way to count under a folder?
Using Count after
ListAsync
doesn't seem to be a very elegant approach, as it reads a lot of metadata from the file - even if I only need a single count number.The text was updated successfully, but these errors were encountered: