備忘録です.
pythonで現在のパスとそのパス内にあるファイルの取得方法です.
import os
print(os.getcwd()) # can see the path to the current working directory.
print(os.listdir(os.getcwd())) # can see the list of the files in the current working directory.
その他にあるファイルが存在するか否かを見るためにはこの記事が参考になります.
import os
os.path.exists(path)
os.path.isfile(path)
os.path.isdir(path)