{"blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","height":"190","blog_url":"https://coffee-guhaw.hateblo.jp/","version":"1.0","author_name":"coffee_kabu","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","width":"100%","image_url":"https://cdn.image.st-hatena.com/image/square/23ff597bd045490499b097f036afb3ec0665a0d5/backend=imagemagick;height=80;version=1;width=80/https%3A%2F%2Fcdn.user.blog.st-hatena.com%2Fcircle_image%2F88409737%2F1514352962196085","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F05%2F24%2F120000\" title=\"\u3010python3\u3011shutil\u306ecopy\u304c\u30a8\u30e9\u30fc\u3092\u51fa\u3059(shutil.SameFileError:.... are the same file) - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2025-05-24 12:00:00","categories":["python"],"description":"import shutil shutil.copy('dir1/hoge.txt', ''dir2/hoge.txt') \u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u540c\u3058\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3044\u3002\u3051\u3069\u3053\u306ecopy\u3055\u3093\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u304c\u540c\u3058\u3060\u3068\u3001\u30a8\u30e9\u30fc\u3092\u51fa\u3057\u3066\u3057\u307e\u3046(\u305d\u3093\u306a\u30c1\u30a7\u30c3\u30af\u3044\u3089\u3093\u3084\u308d\u30fb\u30fb\u30fb) \u30b0\u30b0\u3063\u305f\u611f\u3058\u3001\u304a\u624b\u8efd\u306a\u89e3\u6c7a\u65b9\u6cd5\u306f\u306a\u304b\u3063\u305f\u3002 \u30aa\u30d7\u30b7\u30e7\u30f3\u30921\u3064\u8ffd\u52a0\u3059\u308b\u3068\u304b\u3067\u306a\u3093\u3068\u304b\u306a\u308b\u304b\u306a\u301c\u3068\u601d\u3063\u305f\u3051\u3069\u3001try\u3068except\u3068\u304b\u306a\u3093\u3067\u30b3\u30d4\u30fc\u3059\u308b\u3060\u3051\u3067\u305d\u3093\u306a\u3053\u3068\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304bw\u25a0 \u53c2\u8003 : Disable SameFileError exception in shutil.copy \u3081\u3093\u3069\u304f\u3055\u304b\u3063\u2026","title":"\u3010python3\u3011shutil\u306ecopy\u304c\u30a8\u30e9\u30fc\u3092\u51fa\u3059(shutil.SameFileError:.... are the same file)","url":"https://coffee-guhaw.hateblo.jp/entry/2025/05/24/120000"}