<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dk521123</author_name>
  <author_url>https://blog.hatena.ne.jp/dk521123/</author_url>
  <blog_title>プログラム の超個人的なメモ</blog_title>
  <blog_url>https://dk521123.hatenablog.com/</blog_url>
  <categories>
    <anon>AWS</anon>
  </categories>
  <description>■ はじめに https://dk521123.hatenablog.com/entry/2019/10/21/230004 の続き。 今回は、 Boto3でS3上にあるファイル存在チェックについて 考えてみる。 目次 案１：list_objects_v2 を使う方法 案２：例外「ClientError：Error Code=404」を利用する方法 補足：パフォーマンスについて 案１：list_objects_v2 を使う方法 import boto3 s3_client = boto3.client(&quot;s3&quot;) def has_file( bucket_name: str, target_k…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F2022%2F02%2F26%2F182526&quot; title=&quot;【AWS】Amazon S3 ～ Boto3でファイル存在チェック ～ - プログラム の超個人的なメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-26 18:25:26</published>
  <title>【AWS】Amazon S3 ～ Boto3でファイル存在チェック ～</title>
  <type>rich</type>
  <url>https://dk521123.hatenablog.com/entry/2022/02/26/182526</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
