function muestraRutas(node)
{
for each(n in node.children)
{
if ( n.isDocument )
salida+="Ruta de los archivos: "+n.displayPath+"/"+n.name+"\n\r";
for ( var i = 0; i < n.children.length; i++ ) {
if ( n.children[i].isContainer == true )
muestraRutas( n.children[i] );
}
}
}
// Objetos modificables
var nodo_raiz = "" ;
var salida = "";
var logFile = script.parent.childByNamePath( "muestraRutas.txt" );
// Precondiciones
if ( logFile == null )
logFile = script.parent.createFile( "muestraRutas.txt" );
if ( nodo_raiz == "" )
{
var space = companyhome;
}
else{
var space = companyhome.childByNamePath( nodo_raiz );
}
if (space != null) {
muestraRutas( space );
}
else{
salida += "Error al localizar el espacio raiz: " + nodo_raiz + "\n\r";
if (logger.isLoggingEnabled())
{
logger.log("Error al localizar el espacio raiz: " + nodo_raiz );
}
}
logFile.content = salida;
logFile.save();
logFile.content;
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.