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

Answered
New post

Comments

2 comments

  • mwiller

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

     

    file_size = client.file(file_id).get().size
    0
    Comment actions Permalink
  • dkadia

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

     

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

     

    0
    Comment actions Permalink

Please sign in to leave a comment.