title: How to get a file from a network windows directory and move to my Python Django project directory?
body: <p>I'm programming in a MacOS and using Python + Django. I must to get some files in our private network (Windows network) and move them to our server. There, Python/Django will read these files and save the data in a database. How can I do that?</p>
  
  <p><strong>What I have tried</strong></p>
  
  <pre><code>source_path = "smb://server-name/GRUPOS/TECNOLOGIA_INFORMACAO/Dashboard Diretoria/"
  dest_path = "./static/reports/". # This is my static folder where I want to move the file
  file_name = "general_reports.csv"
  shutil.copyfile(source_path + file_name, dest_path + file_name)
  </code></pre>
  
  <p>It gives the follow error:</p>
  
  <blockquote>
    <p>[Errno 2] No such file or directory:
    'smb://server-name/GRUPOS/TECNOLOGIA_INFORMACAO/Dashboard
    Diretoria/general_reports.csv'</p>
  </blockquote>
  
  <p>This path (source_path) I just copied and past from the Finder, so... I think that it's correct. I have already searched at StackOverflow and I have tried other methods like put "r" before the path... Nothing....</p>
  
  <p><strong>Technologies used</strong></p>
  
  <ul>
  <li>Python 3.6;</li>
  <li>Django 3.0.5;</li>
  <li>Mac OSX;</li>
  <li>Windows Network.</li>
  </ul>
  
  <p>Thank you for your help and patience.</p>