<br>Hi, <br>I am working on a directory synchronisation tool for Linux. <br><br>$ gcc --version<br>gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)<br>$ python -V<br>Python 2.5.2<br>$ smbclient --version<br>Version 3.0.28a<br><br>I first designed it to work on the local filesystem. I am using filecmp.py <br>



(distributed with Python) for comparing the files. Of course I had to <br>modify it in a way that it will return object rather than stdout. I have <br>this compare method in my main class which is os.walk()-ing through <br>



the directories and labeling the files on the GUI according to this returned <br>object by filecmp.py.  <br>Now I want add support for syncing between (unix and NT) network <br>shares without having to change my abstraction much. At first googling <br>



I hit a samba discussion appeared on this list ages ago. It did not help me <br>much though. I also found this pysmbc, libsmbclient bindings, written by <br>Tim Waug but it
requires libsmbclient-3.2.x. which requires <br>libc6 >= 2.8~20080505 which comes with Intreprid but I have reasons <br>not to upgrade my Hardy. <br>Another thing I found was pysamba, by Juan M. Casillas,  but it needs <br>



a bit of hack; samba needs to be configured with python. <br>I am looking for something that won't bother the end user nor me. I want <br>to keep it as simple as possible. I will distribute the libraries myself if I have <br>



to and if licence is not an issue. <br><br>If I have to summarise, I need to get m_time and size (and preferably stick with <br>os.walk and filecmp.py if possible) and copy files back and forth using <br>samba (unix <-> NT).  I don't wanna reinvent the wheel or overengineer <br>



anything but if I can do this without any additional libraries, great! <br><br>I would appreciate any advice on this.<br>Thanks..<br>-- <br>    Fatih<br><br><br>