concept breadcrumb trail in category javascript

appears as: The breadcrumb trail, breadcrumb trail, breadcrumb trail
Prototype and Scriptaculous in Action

This is an excerpt from Manning's book Prototype and Scriptaculous in Action.

The list_dir() method basically iterates through the current folder using PHP’s filesystem functions and records each item in one of three categories: sub-folder , image , and everything else. The results are then assembled as an array and returned . We can test for subfolders using PHP’s built-in is_dir() method. Note that we explicitly ignore the special folders . and .., which represent the current location and its immediate parent respectively. The breadcrumb trail will handle navigation up the tree, and we’re already at the current location.