I am trying to use the copy command for Windows, and we have directories such as c:\oracle.
When trying to perform one of these, we get the following error:
source_file=folder+"\"
^
SyntaxError: Lexical error at line 17, column 23. Encountered: "\r" (13), after : ""
Here the folder is my path c: \ oracle and when trying to add a file to it, for example:
source=folder+"\"+src_file
I can not do it. Any suggestion on how to solve this problem?
I tried to use /, but my copies calling the source code in os.commandget "the syntax is incorrect"and the only way to solve this is to use \, but I get the above error.
Please offer. Thank you for your help.
Thank.
source
share