Added linked list directory traversal