LoginSignup
0
1

More than 5 years have passed since last update.

python > fileIO > Logフォルダがなかったら作る > import os.path / if os.path.isdir("Log") == False: / os.mkdir("Log")

Last updated at Posted at 2015-11-21
動作確認
CentOS 6.5

line monitorでログをとるため、フォルダを作成したい。

参考
http://www.gesource.jp/programming/python/code/0008.html

test.py
import os.path

if os.path.isdir("Log") == False:
    os.mkdir("Log")

上記コードで作成できた。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1