title: FileNotFoundError: [Errno 2] No such file or directory boto3 aws
body: <p>I am using boto3 to download a file and then copy in <strong>tmp</strong> file on lambda funtions . I am using this function to download a file</p>
  <pre><code>S3_BUCKET_NAME = 'dev-bucket'
  key = 'uploads/random.xlsx'
  s3.download_file(S3_BUCKET_NAME, key, 'tmp/hello2.xlsx')
  </code></pre>
  <p>but I am getting this error</p>
  <p><strong>FileNotFoundError: [Errno 2] No such file or directory: 'tmp/hello2.xlsx.a56DfB10'</strong></p>
  <p>am I doing something wrong  here ?</p>