10-04-2010 04:22 AM
10-08-2010 06:39 AM
10-20-2010 12:58 PM
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;
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.