How to download all files from OneDrive with a folder structure?

Hi!

In the beginning is it necessary to get a list of IDs of all files and folders?
How do I do it?

Is it necessary to enter a search query to get a list of all the files in the output?

7747chrome

Thank you !

It gives an error, although everything is set correctly.

Folder ID
47DC40B2EE69619F

Other services have a similar approach:

And if I need all the files - how do I collect their IDs?

I found this way out:

1 Like

Found a way out with the help of a pad in the form of GSheet.
First, I scan everything on OneDrive and write all the IDs in the GSheet,
and then based on the table - I download everything.

If someone suggests a simpler and better way, I would be grateful.