Module dirs
internal directory management
Introduction#
The dirs module defines a small set of functions to store and manage directories.
Functions#
dirs.peak(num): Look atnumamount of recent directories, starting from the latest.dirs.pop(num): Remove the specified amount of dirs from the recent directories list.dirs.push(dir): Adddirto the recent directories list.dirs.recent(idx): Get entry from recent directories list based on index.dirs.setOld(d): Sets the old directory string.
peak#
dirs.peak(num)
Look at num amount of recent directories, starting from the latest.
This returns a table of recent directories, up to the num amount.
Parameters#
number num?
pop#
dirs.pop(num)
Remove the specified amount of dirs from the recent directories list.
Parameters#
number num
push#
dirs.push(dir)
Add dir to the recent directories list.
Parameters#
string dir
recent#
dirs.recent(idx)
Get entry from recent directories list based on index.
Parameters#
number idx
setOld#
dirs.setOld(d)
Sets the old directory string.
Parameters#
string d