[현재 경로]
direct = os.getcwd()
[폴더 만들기]
answer = './results'
if os.path.exists(answer):
pass
else:
os.mkdir(answer)
[경로 안 파일 리스트]
DirectoryFiles = os.listdir(answer)
for oneFile in DirectoryFiles :
filePath = os.path.join(answer, oneFile)
'learning > Python' 카테고리의 다른 글
request 크롤링에 유용한 사이트 및 프로그램 (0) | 2022.08.17 |
---|---|
[Linux] 기타 코드 (0) | 2022.06.22 |
[Python] 파일압축 및 압축풀기 (0) | 2022.06.02 |
[Python] GPU 제한 (0) | 2022.04.15 |
[Linux] 파일 돌리기 (0) | 2022.02.14 |
댓글