FileStream.listFiles()

path 경로의 디렉토리에 존재하는 파일과 디렉토리의 이름을 배열로 반환합니다. path 경로가 존재하지 않거나 파일일 경우 null을 반환합니다.

구문

JavaScript

FileStream.listFiles(path);

매개변수

path String

자식 파일/디렉토리의 이름을 불러올 디렉토리의 경로

반환값

String[] - path 경로의 디렉토리에 존재하는 파일과 디렉토리의 이름을 배열로 반환합니다. path 경로가 존재하지 않거나 파일일 경우 null을 반환합니다.

호환성

listFiles