I'm not fluent in Java, so I won't post some Java code, but rather some pseudo-code.
At the end of your displayFileAttributes method, you have to iterate over each element of the current path, and recursively call displayFileAttributes for them:
for each (FileSystemElement element in path.getFileSystemElements()) {
displayFileAttributes(element);
}
Hope this helps.