pythonで新しいディレクトリを作りたいときは、以下のようにos.makedirs(作りたいディレクトリ名)で大丈夫。 import os dir = '/home ...
Given a path to a directory the call to os.listdir(path) will return the names of the files, directories, symbolic links, etc. in that directory. In the simple case ...