Bonjour,
J'essaye de copier un fichier avec ce code :
Mais quand je l'exécute il me renvoie :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 import shutil shutil.copy("C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\panorama\videos\Backgrounds\Cache\1\nuke.webm", "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\panorama\videos")
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
shutil.copyfile("C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\panorama\videos\Backgrounds\Cache\1\nuke.webm", "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\panorama\videos")
File "C:\Users\Theo\AppData\Local\Programs\Python\Python36-32\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
OSError: [Errno 22] Invalid argument: 'C:\\Program Files (x86)\\Steam\\steamapps\\common\\Counter-Strike Global Offensive\\csgo\\panorama\x0bideos\\Backgrounds\\Cache\x01\nuke.webm'
Partager