-
폴더 파일 다루기 Python os, shutil, collections...2024.02.07os.mkdir() : 디렉토리 생성 os.makedirs() : 인자로 받은 경로에 디렉토리 생성 (모든 경로 디렉토리 없으면 생성함) import os if os.path.exists('ex_folder'): print('The folder already exists.') else: os.mkdir('ex_folder') print('The folder has been created.') os.makedirs('ex_folder/20240206') shutil.copy() : 파일 복사 shutil.copytree() : 디렉토리 복사 import shutil shutil.copytree('D:\ex_folder', 'ex_folder') import shutil shutil.copy('ex_fold..