874
edits
(added docs for url.toFilename().) |
(Added initial docs for file module) |
||
| Line 138: | Line 138: | ||
The following modules come built-in with Cuddlefish and can be retrieved with a call to <tt>require()</tt>. | The following modules come built-in with Cuddlefish and can be retrieved with a call to <tt>require()</tt>. | ||
=== <tt>file</tt> === | |||
The <tt>file</tt> module provides access to the local filesystem. | |||
<tt>file.'''dirname'''(''path'')</tt> | |||
Returns the path of a file’s containing directory, albeit the parent directory if the file is a directory. | |||
<tt>file.'''list'''(''path'')</tt> | |||
Returns an array of files in the given directory. | |||
<tt>file.'''join'''(''...'')</tt> | |||
Takes a variable number of strings, joins them on the file system’s path separator, and returns the result. | |||
=== <tt>securable-module</tt> === | === <tt>securable-module</tt> === | ||
edits