[Python] Check if Azure Blob is directory

Discussão em 'Python' iniciado por Stack, Maio 2, 2025.

  1. Stack

    Stack Membro Participativo

    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...

Compartilhe esta Página