pysmbc
pysmbc copied to clipboard
libsmbclient binding for Python
Hi Team, We are trying to use `pysmbc` for getting meta-data of SMB Azure File Share and it's able to hit the `opendir()` call to retrieve the children but failed...
When I use smbcacls, I see detailed about [control-bits](https://www.samba.org/samba/docs/current/man-html/smbcacls.1.html) ### smbcacls //server/folder sub-folder -U administrator%password > REVISION:1 > CONTROL:SR|DI|DP > OWNER:Administrators > GROUP:WIN-USERS\None > ACL:user:ALLOWED/OI|CI|I/CHANGE > However, when I use...
I am wanting to use the debug information from smbc.Context in my code as part of research. currently, i'm doing smbc.Context(debug=3) as it has the ability to provide some additional...
Hi. I am trying to figure out how to replicate this functionality of smbclient: `smbclient -U username \\\\server\\printer_share -c "print file.txt"` I've looked through files but I can't figure out...
Hi, I am implementing samba support in a python 3.5.10 software. I'm using version 1.0.15.6 (the one available on debian stretch, see https://packages.debian.org/stretch/python3-smbc). I also tried directly with 1.0.23. I...
The following patch [ldo-stat-result.patch.txt](https://github.com/hamano/pysmbc/files/3684473/ldo-stat-result.patch.txt) reworks `Context.stat()` and `File.fstat()` to return the same type of namedtuples as `os.stat()` does. This allows for symbolic names to refer to the fields, while remaining...
Thanks for the very useful code! I am hoping to use this library in conjunction with numpy and/or h5py to write array data to a remote samba filestore. numpy and...
Valid code: ```python f = ctx.open(path, mask) f.write(content) f.close() ``` Proposal: ```python with ctx.open(path, mask) as f: f.write(content) ```
The following patch [ldo-module-init.patch.txt](https://github.com/hamano/pysmbc/files/3684467/ldo-module-init.patch.txt) reworks the module-initialization code to reduce repetitive code by using tables of objects requiring initialization instead. It also includes more error checking and recovery.
When I have opened a context to a share and changed to a folder that is provided via DFS the code appears to hang. Is there anything special I need...