Patent ID: 8671086

Claim:
A method comprising: receiving, in a system having a processor, a request from a requestor to access a given directory; determining whether the requestor has previously traversed directories without reading content of the directories, or the requestor has previously read content of the directories the requestor traversed; in response to determining that the requestor has previously read content of the directories the requestor traversed, invoking a first directory access command in the system in response to the request, wherein the first directory access command includes instructions to prefetch content of the given directory, and executing the first directory access command to access the given directory and to prefetch the content of the given directory; and in response to determining that the requestor has previously traversed the directories without reading content of the directories, invoking, in response to the request, a second directory access command that is without instructions to prefetch content of the given directory, and executing the second directory access command to access the given directory.