title: Copying files from SMB server to local drive(Linux/Windows) in python
body: <p>I am using smb module to connect to smb server using following snippet</p>
  <pre><code>import tempfile
  from smb.SMBConnection import SMBConnection
  from nmb.NetBIOS import NetBIOS
  
  conn = SMBConnection('salead', 
                       'repo@2k12', 
                       '192.168.14.1', 
                       'SERVER', 
                       use_ntlm_v2=True)
  assert conn.connect('192.168.1.41', 139)
  if conn:
      print &quot;successfull&quot;,conn
  else:
      print &quot;failed to connect&quot;
  </code></pre>
  <p>I am unable to figure out what exactly I could do to copy files from smb to my local drive as I am using linux machine.</p>
  <p>If anyone can help me out it would be a great help for me.</p>
  <p>Thanks</p>