The requirement is to download files from a remote linux server
The code is as follows:
It was first written as local_file = "D:\", then changed to the following and still reported an error
. When executing, I encountered an error message: the file or directory cannot be found, but I wrote directly to the local D drive.
Then I modified the local path, and the result was still an error as follows:
Finally, I wonder if it is necessary to write the local file name, and then change it to the following:
The success after execution is as follows: