Back

How to retrieve project files from cloud functions

  • 0
  • Flutter
  • Functions
Samuel Kings
30 Apr, 2023, 23:48

I have a Dart project folder that has 3 cloud functions in it which have all been deployed. I mistakenly deleted the project while trying to delete something else. I did SHIFT+DEL so it's not in my recycle bin 😭 😭 I want to know if there is a way I can retrieve the files from each cloud function on Appwrite. 🥹

TL;DR
User accidentally deleted a Dart project folder with 3 cloud functions deployed on Appwrite. Looking for a way to retrieve the files from each cloud function. Solution: Check functions volume for a folder matching the function deployment ID. Also, try digging through docker volumes, specifically the /tmp folder, although the compiled Dart source code might be gone.
Drake
30 Apr, 2023, 23:51

You can try digging through some of your docker volumes. Maybe /tmp folder. The thing is, dart is compiled, so the source code might be gone

Samuel Kings
30 Apr, 2023, 23:54

😭

Drake
30 Apr, 2023, 23:55

Hopefully, you check your code into version control next time

Samuel Kings
30 Apr, 2023, 23:56

Ikr. I was just procrastinating this time around. Now, I've learnt the hard way

Drake
30 Apr, 2023, 23:58

Look through your functions volume and try to find a folder that matches the id of your function deployment

Samuel Kings
1 May, 2023, 00:01

I will. Thanks

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more