ich habe folgendes Problem:
auf meinen Desktop habe ich das Bild Test.png → Pfad: /home/pi/Desktop/Test.png
ich möchte dieses Bild mit Python auf meinen FileServer kopieren → Pfad: \\Server/BilderBackup/
ausprobiert habe ich Folgendes:
Code: Alles auswählen
pathpicture="\\Server/BilderBackup/Bild1.png"
path= "/home/pi/Desktop/Test.png"
smbclient.copyfile(path, fr"\{pathpicture}", username=username, password=password)
ValueError: src must be an absolute path to where the file should be copied from.
Hat, wer ’ne Idee?