开发者

Copying files from temporary internet cache in python

开发者 https://www.devze.com 2023-03-10 15:53 出处:网络
I\'m copying files from the temporary internet files cache into a folder, in bulk using a python script. Using shutil to copy the full path to the os.cwd, it comes up with this error:

I'm copying files from the temporary internet files cache into a folder, in bulk using a python script. Using shutil to copy the full path to the os.cwd, it comes up with this error:

builtins.IOError开发者_运维百科: [Errno 22] Invalid argument:  
'C:\\Users\\NICK\\AppData\\(no whitespace in path; only for readability)
Local\\Microsoft\\Windows\\(no whitespace in path; only for readability)
Temporary Internet Files\\CONTENT.IE5\\04HT8Z5C\\024MS[1].png\\'

Is it because these files are hidden or something?


There is a backslash at the end of your file name so it is maybe treated as a path.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号