在Python中从临时互联网缓存复制文件
我正在使用 python 脚本将文件从临时 Internet 文件缓存复制到文件夹中。使用shutil复制os.cwd的完整路径,会出现以下错误:
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\\'
是因为这些文件被隐藏还是什么原因?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文件名末尾有一个反斜杠,因此它可能被视为路径。
There is a backslash at the end of your file name so it is maybe treated as a path.