Hello. Iād like to know whether itās possible to move the Dynalist folder from my Google Drive to a Google Drive subfolder? When I manually moved this folder, a new Dynalist folder was created as a primary folder the next day with my newest backup. Iām asking because I like to keep my list of primary folders minimal.
Thanks very much! Iām enjoying using Dynalist and have been telling many about it!
Hi @Brian_Rossiter, unfortunately thatās not possible right now, as the path to backup is hardcoded right now. Unlike Dropbox, Google Drive doesnāt have an āAppā folder that keeps all the third party stuff
The thing with Google Drive is that they have a REALLY shitty API for accessing files and folders.
With Dropbox, for example, you can say upload to APPFOLDER + ā/Backups/XYZ.zipā.
With google drive, thereās no app folder, but thatās not the worst part. The worst is that if you want to upload to say ā/Dynalist/Backups/XYZ.zipā, you need to:
Query the root folder for āDynalistā Folder
If that doesnāt exist, create it, and get a folder id of the Dynalist folder
Query the āDynalistā folder for the āBackupsā folder
If that doesnāt exist, create it, and get a folder id for that
Create file XYZ.zip under the āBackupsā folder.
Now, as you can see, if you have an arbitrary folder ā/a/b/c/d/e/f/g/XYZ.zipā, this step will be very long and very slow (because each step is a remote API call to one of Googleās servers)
One alternative I can think of, is to allow the user to specify a āfolder idā to drop backups in. The user will have to somehow get it from google drive, but then once thatās saved into Dynalist, weāll try to upload files in that folder first. The advantage is that the user can move the folder anywhere even after saving the setting into Dynalist, and backups will still work. The downside is that if the folder is deleted, or anything happens to it, backups will stop rolling.
I suspected the google drive API was bad based on all the ancedotal evidence Iāve seen with people integrating into googledrive, but now you confirmed it
The Google Calendar API is not better. Thereās a weird restriction that deleted events canāt be un-deleted, and item IDs must be unique, so weāre forced to kinda āsaveā an id for each itemās date, and make sure to change it if the user ever deletes a date and re-adds it.
Iād really like to move the folder. I know itās possible as Iāve moved the folders from other programs/services and they still work fine. Examples include Google services like Maps or Play Books, or web apps like FileThis, or Join. Iām not a programmer, but Iāve tried a little Google Scripting and it seems you can just do a driveapp.searchFolders to find the folder. Help!
Yea, saw that, and it sounds about right, but just because it isnāt as āniceā as another API doesnāt mean it isnāt worth using. I believe DropBox is probably more path based by nature and Google Drive is more search based by nature, so of course in Drive youāll need to search for what you want, even in the API. Maybe it takes a few more lines of code, but isnāt it worth it to have a more elegant feature that works the way the customers want?
Iām not the one who worked on the Google Drive sync, so Iāll leave it to @Shida to decide whether itās possible. The feasibility of that not only depend on if Google Drive API allows it, it also depends on how the Dynalist system works. From my impression it was next to impossible, and thatās why we didnāt proceed with the plan. It wasnāt āsomething that takes a few more lines of codeā, otherwise weād have done it already.
Thanks for providing the new information, weāll have to evaluate it again. Thanks.
I believe that for now, our system doesnāt store any information about your specific Google Drive account.
What we could do is to always search for a dynalist folder. If it exists, backups will be saved there, and otherwise we will create one at the root of the drive.
We donāt store anything from google drive, which is why we previously had to check for the folderās existence every time. Search should be able to solve most of the problem though, as long as the folder isnāt renamed backups should go there just fine.
[Edited: Oops, I see this was already suggested above. Sorry! But +1 on the idea!]
Would you be open to allowing the user to specify the parent folder via url, e.g., https://drive.google.com/drive/u/0/folders/0B6wO23gPBY74Sm5rOUhhSlIwaTQ
and create/populate the dynalist folder under that location? (Iām assuming thatās the API-appropriate folder ID in the URL but could be totally off base here.)
I guess this might introduce the need for some additional error handling modes if that folder does not exist.