From ComputerCraft Wiki
Revision as of 19:43, 22 April 2013 by Hawk777 (Talk | contribs) (Copy description from API page and use type template)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Grid Redstone.png  Function fs.getName
Gets the final component of a pathname. Pathname components are separated by forward slashes. The path need not exist.
Syntax fs.getName(string path)
Returns string the last path component of the path, or "root" if the path refers to the root directory
Part of ComputerCraft
API fs


Grid paper.png  Example
Gets the last path component of a file
Output colors