0

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!

reflog
  • 7,587
  • 1
  • 42
  • 47

3 Answers3

2

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

Nikolai
  • 1,325
  • 12
  • 24
1

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.

Boris Daich
  • 2,431
  • 3
  • 23
  • 27
0

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

INS
  • 10,594
  • 7
  • 58
  • 89