How to delete a file from the filesystem based on the returned case
insensitive delta?
I am attempting to write a code to fulfill this particular case documented
in the Dropbox Core API python SDK.
[path, nil]: Indicates that there is no file/folder at the path on
Dropbox. To update your local state to match, delete whatever is at path,
including any children (you will sometimes also get "delete" delta entries
for the children, but this is not guaranteed). If your local state doesn't
have anything at path, ignore this entry.
The API notes that the returned [path] is case insensitive.
Remember: Dropbox treats file names in a case-insensitive but
case-preserving way. To facilitate this, the path strings above are
lower-cased versions of the actual path. The metadata dicts have the
original, case-preserved path.
How do I remove the file or directory in question from my system if I do
not know the case-preserved version of the path?
No comments:
Post a Comment