As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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;