Apparently directories are also treated as blobs. So far I have been checking blob.content_settings.content_type is None, but I don't know if other non-directory blobs can have None content type (and not application/octet-stream). What is the canonical way to check if a blob is a directory? Azure Storage SDK - check if Blob is directory in hierarchical storage Similar question for C#, but I cannot find the analogous CloudBlobDirectory type in python. Continue reading...