Help! My local files have disappeared😨

Hello!
I have not been using dynalist for a while whilst I was on holiday and I got logged out of the app. After logging back in, my locally saved files which were not saved to the cloud are gone! I have checked the settings and the offline mode is still on and I am still paying for pro. Actually, this is the main reason I keep paying for pro - because I have this unfinished work that cannot be online for privacy reasons. And it’s not been backed up because I didn’t know how to do that and forgot about it.

Could someone please tell me how can I locate the local files in my computer and how do I make them re-appear in dynalist?

I’d really appreciate any suggestions! Thank you!

Hmmm that’s concerning. I believe the files are located in %appdata%/Dynalist/data/user_id/. Each file has a unique ID in front of it. I would suggest sorting the files by last edited time and open some of them with a text editor to identify which one is the correct one. Then, copy the unique ID and run the following code in the developer console, making sure to replace the document ID DYNALIST.app.userspace.userspace.create_document('document_id')

I think in your case, it is possible that the relogging caused a fresh workspace to be created from the server copy, which does not have references to the local files.

Ah it seems like you need to run a few more commands to make the file show up.

Try this instead (make sure to replace the document ID in there):

let us = DYNALIST.app.userspace.controller;
let file = us.userspace.create_document('<replace_document_id>');
us.push_new_file(file);
us.attach_file(file, us.userspace.get_root_file(), 0);

Thanks for your quick reply! Sorry, I didn’t see it…

I tried running the second code and it came up witht the following error:

Uncaught TypeError: us.push_new_file is not a function
at :3:4

Apologies I forgot to add the .controller to the code - I’ve went back and edited my previous post with the code script.

Thanks!

I have opened a console in the app using ctrl+shift+i, then pasted the following with what I think is the file ID of the correct file, and the only thing that appeared in the console is “undefined”. I cannot see any new file in my workspace…

let us = DYNALIST.app.userspace.controller;
let file = us.userspace.create_document(‘~nndS2UWGJoEHbPZbslqpgwjz’);
us.push_new_file(file);
us.attach_file(file, us.userspace.get_root_file(), 0);
undefined

Ah, it did something because I can see the old tags have re-appeared!

Yeah after you run that, your file should show up at the top of your file list.

1 Like

Its now back! Thank you so much, you saved me :sweat_smile:

1 Like