Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

daniel7rusu's avatar
daniel7rusu
Explorer | Level 3
9 years ago

Python files_list_folder.sharing_info shows None

Until two weeks ago, running the below code would return a hash for sharing_info of each entry. But now it's returning none. Can anyone tell me whats going on?

 

Using python documention found here: 

http://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#module-dropbox.files

 

files_list_folder(path, recursive=False, include_media_info=False, include_deleted=False, include_has_explicit_shared_members=False)

 

My code:

 

entries = dbx.files_list_folder('myfolder',recursive=True)

 

Sample of 2 entry results:

 

FileMetadata(name=u'brei3389_2016_8879-signed.pdf', id=u'id:2SS_0foZgqYAAAAAAAodvw', client_modified=datetime.datetime(2017, 2, 28, 3, 16, 31), server_modified=datetime.datetime(2017, 5, 8, 18, 24, 33), rev=u'27ade301577694', size=224825, path_lower=u'/brian alan lang ea/work papers/bravo/breit/2016/brei3389_2016_8879-signed.pdf', path_display=u'/brian alan lang ea/work papers/bravo/breit/2016/brei3389_2016_8879-signed.pdf', parent_shared_folder_id=None, media_info=None, sharing_info=None, property_groups=None, has_explicit_shared_members=None, content_hash=u'6025e1a0e7ed65ddab7cc395fdd3e42132ae5e11584f027cb46eb3af967c44e7'), FileMetadata(name=u'Brei3389_2016_Lyft.png', id=u'id:2SS_0foZgqYAAAAAAAodvg', client_modified=datetime.datetime(2017, 2, 24, 12, 12, 45), server_modified=datetime.datetime(2017, 5, 8, 18, 24, 33), rev=u'27ade401577694', size=111115, path_lower=u'/brian alan lang ea/work papers/bravo/breit/2016/brei3389_2016_lyft.png', path_display=u'/brian alan lang ea/work papers/bravo/breit/2016/Brei3389_2016_Lyft.png', parent_shared_folder_id=None, media_info=None, sharing_info=None, property_groups=None, has_explicit_shared_members=None, content_hash=u'30d161a17054b38e9b74dc2a7f43b5f6a1f1180a7aeb2079129b5945c3f7f361'), 

As you can see it shows sharing_info=None where it used to return:

 

"sharing_info": {
        "read_only": true,
        "parent_shared_folder_id": "84528192421",
        "modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
    },

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    The sharing_info field will only be set if the file is inside a shared folder. It sounds like this file is no longer in shared folder, so it won't be set anymore. (For example, you may have "left" the shared folder, but kept your copy.)
  • daniel7rusu's avatar
    daniel7rusu
    Explorer | Level 3
    9 years ago

    Hey Greg thanks for the response.

     

    The folders within that folder are shared with various individuals. Those are the folder which I want sharing info on. So they are partially shared, not open to anyone.

     

    Yet they dont show sharing info. 

     

    Any advice you have?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    To clarify, using one of the paths you posted:

    /brian alan lang ea/work papers/bravo/breit/2016/brei3389_2016_8879-signed.pdf

    Are you sure one of those parent folders is still shared? (I.e., "brian alan lang ea", or "work papers", etc.) Shared folders can be unshared, or files/folders can be moved out of shared folders, by the user at any time.

    In any case, it's hard to say offhand exactly what may have happened, so feel free to open a ticket from the affected account if you'd like us to check on this specifically:

    https://www.dropbox.com/developers/contact

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!