현재_디렉터리_얻기,gettting_current_directory

current directory = working directory

파이썬,Python에서 현재 디렉터리 / 작업 디렉터리


를 얻는 방법
import os
os.getcwd()

를 바꾸는 방법
os.chdir("/some/directory")



Sub:
subdirectory
root_directory
{
root directory
WtEn:root_directory
WpSp:Root_directory ?
WpEn:Root_directory ?
Ggl:root directory
Ndict:root directory
"root directory"
wikiadmin
Pagename 루트디렉터리 via kn at 2023-11-05.
mkl chroot
}

트리,tree 구조.
filesystem / file_system의 구성 요소.
파일,file들을 담고 있음.

Rel: 폴더,folder. <- aka? 혹시 뜻이 다른경우가 있다면 구체적으로 뭔지?

Python에서 하위 directory들을 훑으려면 os.walk() 함수를 사용.
for root, dirs, files in os.walk(os.getcwd()):
    print(files)

그 중 특정 확장자인 파일만 찾고 싶다면,
for root, dir, files in os.walk(os.getcwd()):
    for f in files:
        a = os.path.splitext(f)[-1]
        if a == ‘.xml’:
            print(f)






diretory = 디렉터리 via kn at 2023-11-05.

}


RENAMETHISPAGE (t가 세개)