These functions allow it to lookup the previous or next file from the history and can later be used to auto-select subdirectories when walking back and forth through the history.