The idea came that I wanted to get all the files from one of my device as I was on a computer without the original files and needed to make some changes in some of theses files.
The changes are in 3 parts:
1 - Fix the download command that can't handle file with folder in their name → it will now create that folder if it does not exist on the host
2 - Fix the file list command to correctly use the uploader.list_file() function instead of relying on some "debug" code in there, if will now get the file list from that method and then display it.
3 - Add the backup command itself, which is basically, getting the list of files, then download them one after each other
The idea came that I wanted to get all the files from one of my device as I was on a computer without the original files and needed to make some changes in some of theses files.
The changes are in 3 parts: 1 - Fix the download command that can't handle file with folder in their name → it will now create that folder if it does not exist on the host 2 - Fix the
file list
command to correctly use the uploader.list_file() function instead of relying on some "debug" code in there, if will now get the file list from that method and then display it. 3 - Add the backup command itself, which is basically, getting the list of files, then download them one after each other