This answer: https://mathematica.stackexchange.com/a/201726/62529 allows downloads of all files from wolfram cloud. However, it does not preserve the folder tree.
I have a lot of files I want to download and they have folders nested within folders. These folders make it painful to have to reorganize all my files after downloading.
How can I download everything and not loose my folder organization?
I tried modifying the code (I linked to earlier) by changing Information[#, "DisplayName"] to Information[#, "Path"], but this gave me errors
localBackupPath = "C:\\Users\\username\\Desktop\\WolframBackup";
objects = CloudObjects@CloudDirectory[]
type = Information[#, "FileType"] & /@ objects;
allObjects =
Flatten[MapThread[
If[#2 === Directory,
CloudObjects[#1], #1] &,
{objects, type}]];
CopyFile[#,
FileNameJoin[{localBackupPath,
Information[#, "Path"]}]] & /@ allObjects
CopyFilefails. – Rohit Namjoshi Feb 02 '22 at 16:57