Hello,
I'm seeking help with a recent problem that has arisen with an App (built on the Dropbox .NET SDK, running as a part of cloud-hosted Windows Service, and using a long-lived refresh token for OAuth access) that had been running successfully for a couple of years.
Originally, the App looked for files in its top-level App folder for processing, and - when complete - deleted all such files. Recently, the need has arisen to do a recursive search in sub-folders below the App's top-level folder as well and I was modifying the C# .NET code logic such that it would search for files in the top-level folder, and, additionally, recursively in sub-folders. Then - after having processed all such files - delete these files and any empty folders in the App file/folder tree. My intention is/was to NOT delete to top-level App folder when it was empty, but, due to a coding error, I did programmatically delete (via DeleteV2Async) the top-level folder associated with the App.
And, now, it seems the App is broken. Specifically, I'm seeing a 'path/not-found' error when calling ListFolderAsync on the top-level folder. As a side note, I can still see the folder in the Dropbox web UI for my account. And I've tried (multiple cycles of) restore/delete from the web UI, but still the App is getting that path/not-found error when calling ListFolderAsync on that folder. Also of note, when I call ListFolderAsync on the root path ("") and with includeDeleted = true, I can see the top-level App folder in the resulting Metadata list and its IsDeleted property is true.
I've been searching for a way to programmatically restore the App's top-level folder but, based on what I've found online, folders are not restorable in this way - only files. So I'm stuck: restoring via the web UI doesn't seem to change this folder's deleted status in the .NET App, but there seems to be no way (that I've found) to restore this folder programmatically.
Is there a way to solve this problem?