Lista de carpetas<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hola,
Espero una solución para obtener una lista de carpetas en un directorio dado usando JSL.
¡Gracias por adelantado!
Jerónimo
Re: Lista de carpetasFunciona muy bien.
Re: Lista de carpetasDe hecho, ¡algo como esto debería ayudar!
Intentaré insertar esto en mi script, ¡pero debería ayudarme a seguir adelante!
Muchas gracias Ian!
Jérôme
Re: Lista de carpetas¿Algo como esto, quizás?
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));