✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Una empresa necesita auditar el directorio /srv/empresa. El programa debe recorrer todos sus niveles y mostrar únicamente los archivos regulares que no estén ocultos ni sean enlaces simbólicos.
De cada archivo se mostrará:
Genera el código completando los huecos. Supón que las excepciones ya están gestionadas.
Path base = Path.of("/srv/empresa");try (Stream<Path> elementos = ________________________) { elementos.forEach(ruta -> { if (__________&& ___________&& _____________) { String ubicacion = ________________________; String tamanio = String.valueOf(________________________) + " MiB"; String propietario = ________________________; System.out.println( ubicacion + " | " + tamanio + " | " + propietario); } });}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!