I would like create a python script that mounts a Windows smb share on a Mac then copies data to it. I am falling at the first hurdle, having problems with mounting the share. It should be really easy but I can't get it to work. I have trawled the internet and have a few clues:
mount -t smbfs //user@server/sharename share
This doesn't work but I have seen another solution that uses the os module for the mount command:
os.system("mount -t smbfs //user@server/sharename share")
But this doesn't work either.
I have also read about creating a local mount point for the remote share to mount to. Is this true? And how would I go about this?
Many thanks for any insights
All the best