폴더 목록<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />안녕,
JSL을 사용하여 지정된 디렉토리의 폴더 목록을 가져오는 솔루션을 기대하고 있습니다.
미리 감사드립니다!
제롬
Re: 폴더 목록정말 잘 작동합니다.
Re: 폴더 목록실제로 이와 같은 것이 도움이 될 것입니다!
내 스크립트에 이것을 삽입하려고 노력하겠지만 앞으로 나아가는 데 도움이 될 것입니다!
고마워 이안!
제롬
Re: 폴더 목록아마도 이런 것일까요?
Names Default To Here( 1 );
// Given a path to a folder, returns a list of all folders therein (not recursive!)
dirList =
Function({path}, {Default Local},
// Get all files and folders in the specified folder
fid = Files In Directory( path);
// Remove all the files, just leaving the folders
for(f=NItems(fid), f>=1, f--, if(IsFile(path||"/"||fid[f]), RemoveFrom(fid, f)));
fid;
);
// Try out the function
path = "$DESKTOP";
Print(dirList(path));