I am using the python-smbc library on Ubuntu to access a samba share. I can access the directory structure fine, I am however not sure how to access actual files and their content. The webpage (https://fedorahosted.org/pysmbc/) doesn't mention any thing, the code is in C/C++, with little documentation, so I am not quite sure how to use it.
What I know is that Context.open (for files) takes uri, flags and mode, but what flags and mode are, I don't know.
Has anyone used this library, or have examples off how to read files using it?
The ideal situation had of course been to use smbfs mounts, but when I mount the same share using smbmount, all folders are empty. Though I can browse it with smbclient fine using the same credentials.
Aucun commentaire:
Enregistrer un commentaire