nk9 / get_dropbox_link

Code to get the URL of a file in the Dropbox folder
MIT License
6 stars 1 forks source link

"Not in subpath" error #7

Closed nk9 closed 1 year ago

nk9 commented 1 year ago

When I use the script, I am getting this error:

$ get_dropbox_link.py -v Dropbox/file\ to\ share.txt
ERROR:root:'/Users/nick/Dropbox/file to share.txt' is not in the subpath of '/Users/nick/Library/CloudStorage/Dropbox' OR one path is relative and the other is absolute.
nk9 commented 1 year ago

This is because the actual location of the Dropbox folder on disk has moved from ~/Dropbox to ~/Library/CloudStorage/Dropbox. The ~/Dropbox directory is now just a symlink. The script isn't resolving the provided path, though, so it doesn't appear to be inside the Dropbox folder as specified by ~/.dropbox/info.json.