title: Python shutil module move exception handling
body: <p>Destination path /tmp/abc in both Process 1 &amp; Process 2
  Say there are N number of process running
  we need to retain the file generated by the latest one</p>
  
  <p>Process1 </p>
  
  <pre><code>import shutil
  shutil.move(src_path, destination_path)
  </code></pre>
  
  <p>Process 2</p>
  
  <pre><code>import os
  os.remove(destination_path)
  </code></pre>
  
  <p>Solution
  1. Handle the process saying if copy fails with [ErrNo2]No Such File or Directory</p>
  
  <p>Is this the correct solution? Is there a better way to handle this</p>
  
  <p>Useful Link <a href="https://stackoverflow.com/questions/11614815/a-safe-atomic-file-copy-operation/28090883">A safe, atomic file-copy operation</a></p>