This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
api:filesystem [2015/02/01 01:42] solra_bizna [Filesystem API] Eek! That isn't actually possible in current version! |
api:filesystem [2015/08/01 07:30] shuudoushi |
||
---|---|---|---|
Line 44: | Line 44: | ||
Gets whether the path points to a directory. Returns false if not, either because the path points to a file, or `file.exists(path)` is false. | Gets whether the path points to a directory. Returns false if not, either because the path points to a file, or `file.exists(path)` is false. | ||
- `filesystem.lastModified(path: string): number` | - `filesystem.lastModified(path: string): number` | ||
- | Returns the *real world* unicode timestamp of the last time the file at the specified path was modified. For directories this is usually the time of their creation. | + | Returns the *real world* unix timestamp of the last time the file at the specified path was modified. For directories this is usually the time of their creation. |
- `filesystem.list(path: string): function -> string or nil, string` | - `filesystem.list(path: string): function -> string or nil, string` | ||
Returns an iterator over all elements in the directory at the specified path. Returns `nil` and an error messages if the path is invalid or some other error occurred. | Returns an iterator over all elements in the directory at the specified path. Returns `nil` and an error messages if the path is invalid or some other error occurred. |