Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

How to get the size of the file in the box using python

Répondu
Nouvelle publication

Commentaires

2 commentaires

  • mwiller

     The following will give you the size of the file, in bytes:

     

    file_size = client.file(file_id).get().size
    0
    Actions pour les commentaires Permalien
  • dkadia

    Thanks for the response. It seems the code is working same as

     

        len(client.file(file_id='file id').content())

     

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.