Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Nellyb43
5 years agoHelpful | Level 6
Dropbox API Creating Shared link settings Error.
I have a program in Python 3.9 which cleans data every morning, creates a final dataset, and then uses the dropbox api to create a shared link with settings (password) for the file, then email that l...
- 5 years ago
Very interesting. Do you recommend I upload the file straight to dropbox using the API over using util to simply copy it over from my local directory?
I arbitrarily chose 60 seconds of time to give dropbox time to fully sync up the file in the application folder. Each file is on average 500MB. Do you recommend I go with a longer length of time just to make sure the sync works with sharing no matter what. One minute here and there is no issue.
Greg-DB
Dropbox Community Moderator
5 years agoA 'path/not_found' error like this indicates that creating the shared link failed because there was nothing found at the specified path to link to. In this case, based on the error output, this is referring to the path you're supplying in your 'dailyfile_csv' variable.
You'll need to check why there isn't anything at that path. Perhaps you meant to upload something there, but didn't do so successfully. Or, perhaps your 'dailyfile_csv' value is just incorrect.
Nellyb43
5 years agoHelpful | Level 6
So, when running my program I generate the dataset in a folder not in the dropbox app folder, then use shurtil.copyfile to copy that file into the dropbox application folder.
shutil.copyfile(oldpath,dropbox_app_path)
Then to create dailyfile_csv I do
dailyfile_csv = newpath_csv_dbx.replace('\\','/')[40:]This takes something like ""D:\Dropbox\Apps\App Folder Name\Daily Data (2020-12-29).dta" and turns it into "/Daily Data (2020-12-29).dta", which is what the dropbox api wants.
I do indeed see my file "dailyfile_csv" in the application folder - is there anything else that may be going on?
- Nellyb435 years agoHelpful | Level 6
That smiley face is actually: "40 colon ]"
About 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!