Code: Alles auswählen
import shutil
source = "/home/peerpri07/install.py"
destination ="/home/USB Drive"
# Copy the content of
# source to destination
dest = shutil.copy(source,destination)
# Print path of newly
# created file
print("Destination path:", dest)
Mein Problem:
Code: Alles auswählen
Exception has occurred: PermissionError
[Errno 13] Permission denied: '/home/USB Drive'
File "/home/peerpri07/Python/PassStealer.py", line 8, in <module>
dest = shutil.copy(source,destination)
Mein Ziel:
Datei von Punkt A nach Punkt B auf einn USB STick kopieren
Bitte helft mir. Danke