[python] 파일, 디렉터리 조작

디렉터리, 파일, 확장자 분리 (get directory and file, extension) 파일 확인 (check file exists) 파일 복사 (copying files) 파일 이동 (moving files) 파일삭제 (deleting files) 디렉터리 복사 (copying directories) 디렉터리 이동 (moving directories) 디렉터리 삭제 (deleting directories) 디렉터리 탐색 (searching directories) os.getcwd()를 하면 현재 작업 중인 디렉터리 경로를 리턴한다. os.listdir(dirpath) 코드를 이용해서 파일과 디렉터리 내용을 … [python] 파일, 디렉터리 조작 계속 읽기

댓글 없음:

댓글 쓰기