title: How to store the file that get from S3 to /tmp/ in Lambda
body: <p>I want to store the PDF file that I retrived it from S3 to /tmp/ in Lambda but it shows the error that No such file or directory</p>
  <p>Here is my code</p>
  <p><code>s3_1.Bucket(bucket_name).download_file(key_file, &quot;/tmp/filename.pdf&quot;) </code></p>
  <p>And the error shows that :</p>
  <p><em>FileNotFoundError: [Errno 2] No such file or directory: '/tmp\filename.pdf.1261Ec23'</em></p>