Python将副本关闭到网络文件夹OSError:[Erno 22]无效参数:



我正在使用shutil.copy复制远程网络服务器中的文件

shutil.copy(r'ebw.json', r'\xx.xx.xx.xxebw.json')

下面的错误我得到

Traceback (most recent call last):
File "D:ebw.py", line 93, in <module>
shutil.copyfile(os.path.join(r'bwe.json'), os.path.join(r'\xx.xx.xx.xxebw.json'))
File "C:Program Files (x86)Python38-32libshutil.py", line 261, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
OSError: [Errno 22] Invalid argument: '\\xx.xx.xx.xx\ebw.json'

重新共享文件夹后,问题得到了解决。谢谢

最新更新