public static list getFileNamesFromBlob(CloudBlobContainer _blobContainer, str _filepath)
{
CloudBlobDirectory cloudBlobDirectory;
container con;
cloudBlobDirectory = _blobContainer.GetDirectoryReference(_filepath);
System.Collections.IEnumerable lstEnumarable = cloudBlobDirectory.ListBlobs(false, 0, null, null);
System.Collections.IEnumerator lstEnumarator = lstEnumarable.GetEnumerator();
List filenames = new List(Types::String);
while(lstEnumarator.MoveNext())
{
IListBlobItem item = lstEnumarator.Current;
if(item is CloudBlockBlob)
{
CloudBlockBlob blob = item;
blob.FetchAttributes(null, null, null);
con = str2con(blob.name, '/');
filenames.addStart(conPeek(con,conlen(con)));
}
}
return filenames;
}
No comments:
Post a Comment