文件夾列表<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />你好,
我期待著使用 JSL 獲取給定目錄中的文件夾列表的解決方案。
提前致謝!
杰羅姆
回复:文件夾列表它真的很好用。
回复:文件夾列表確實,這樣的事情應該有所幫助!
我會嘗試將其插入我的腳本中,但它應該可以幫助我繼續前進!
非常感謝伊恩!
熱羅姆
回复:文件夾列表也許是這樣的?
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));