1 Minute Tech Tips

Support engineers with one-minute articles.

  • About
  • Profile
Close Button
Menu Button Search Button
Close Button
  1. ホーム
  2. tech
no-image

tech

python3 でディレクトリがなければ作る

2022年1月20日 2022年1月20日

  • Facebook icon
  • Twitter icon
  • Hatena Bookmark icon
  • Pocket icon
  • Feedly icon
  • Line icon

exist_ok を使うことで 1行にまとめることができる

os.makedirs("作りたいディレクトリ", exist_ok=True)

例えば以下の通り

os.makedirs("~/.ssh/", exist_ok=True)

  • Facebook icon
  • Twitter icon
  • Hatena Bookmark icon
  • Pocket icon
  • Feedly icon
  • Line icon

関連記事

  • no image

    Makefile make: `test’ is up to date.

  • purple thread

    FlaskとThreadを使った並行処理と排他制御の実装

  • blue painting

    “Request_BadRequest”,”message”:”Invalid target for navigation property update. URI must target an entity.”

  • a white dice with a black github logo on it

    GitHub接続エラーとその解決方法

  • denied: requested access to the resource is denied

  • no image

    ValueError: Public Client should not possess credentials

  • focused photo of a snow flake

    PandasとSnowflakeでNULL値を扱う

  • docker loginは鍵認証できなそう

  • no image

    年月を、シェルでゼロ埋めする

  • no image

    python dataframeで csv 出力する際の先頭の ,(カンマ)を削除する

2022年1月
月 火 水 木 金 土 日
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« 11月   2月 »

Profile

Certifications

As a testament to my expertise and commitment to lifelong learning, here are some of the professional certifications I have earned:

最近の投稿

  • Autifyでの高度な待機処理: 非活性ボタンを活性化するまで
  • AWS SAM CLIでDockerがUnreachableな場合の解決
  • ターミナルを開いたら自動でtmuxを起動させる
  • jqを使ったJSONデータの柔軟な操作: ユーザーの属性値の動的変更
  • FlaskとQueueを用いたタスク管理の実装

カテゴリー

  • autify (1)
  • azure (3)
  • Book review (21)
  • laravel (16)
  • run (1)
  • tech (367)
    • aws (120)
      • AWS Certified Security – Specialty (7)
      • AWS Certified Solutions Architect – Associate (24)
      • AWS Certified Solutions Architect – Professional (28)
    • docker (29)
    • GCP (21)
    • go (15)
    • kusanagi(wordpress) (7)
    • linux (62)
    • Mac (12)
    • mysql (9)
    • python (18)
    • redash (17)
    • SQL (2)
    • terraform (1)
    • Vue.js (5)
    • 機械学習 (7)
  • _ (1)
  • 振り返り (2)
  • 未分類 (2)
  • About
  • Profile
© 2023 1 Minute Tech Tips

Made by Godios. Theme