Question

I'm looking for some stand alone library to access SMB/CIFS shares. I am not looking for mounting the shares, just browsing and accessing the files for reading.

Preferable something with a simple simple API similar to regular POSIX operations of opendir, scandir, read and etc.

Thanks in advance!

Was it helpful?

Solution

as you say nothing about the preferred language I would recommend looking on http://jcifs.samba.org especially http://jcifs.samba.org/src/docs/api/jcifs/smb/SmbFile.html it has what you ask for. Reading files, enumearating directories. API fairly simple.

OTHER TIPS

The libsmbclient shared library is part of samba provides simple API to access Windows file servers.

Pysmb is a good choice if you want to access samba shares from python.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top