Open PeroPonneso opened 2 years ago
Is branch1 created and writable by the user on the remote server?
Thanks for the attention @miketeo,
If branch1 is already present in the remote and the local (with correct authorizations) with the same relative path configuration it works. I wanted to grab files from, lets say:
from Windows:
root\branch1\file1
root\branch2\file2
root\branch3\file3
...
to Linux:
root\files\file1
root\files\file2
root\files\file3
...
having a different folder configuration between the two. I'm quite sure i'm just using the store function badly.
Thanks again for the reply
Hi, thanks for pysmb, it is a nice tool.
I'm running the code from a folder in Windows Server 2019 (also from Windows 10) to a share on Linux 20.04.
When i transfer a file in the same folder as the code to the share the operation is completed successfully
Now i need to send a bunch of files from different folders to the same share. To achieve that i tried modifying the writing part like this :
the open() function gives back the right name and doesn't throw exception; the conn.storeFile() throws:
I've tried different combinations of path and filename using "\" , "/", "./" and ".\" but it doesn't solve the problem. Am i missing something or misunderstanding how i should format the function for files in different locations?
Thanks