171
edits
(Added a proposal for a tier1 specification of the File API) |
m (→Tier 1: removed symlink variants for tier 1) |
||
Line 12: | Line 12: | ||
* exists(path): whether a file exists at a given path: receives a path and returns whether that path, joined on the current working directory, corresponds to a file that exists. If the file is a broken symbolic link, returns false. | * exists(path): whether a file exists at a given path: receives a path and returns whether that path, joined on the current working directory, corresponds to a file that exists. If the file is a broken symbolic link, returns false. | ||
* stat(path): returns an object that represents a snapshot of the information about given file. | * stat(path): returns an object that represents a snapshot of the information about given file. | ||
Line 21: | Line 19: | ||
*# The path is resolved relative to the current working directory. | *# The path is resolved relative to the current working directory. | ||
*# Throws an error if the corresponding file does not exist or is inaccessible. | *# Throws an error if the corresponding file does not exist or is inaccessible. | ||
* list(path): returns a traversable, indexable representation of the names of files in a particular directory. | * list(path): returns a traversable, indexable representation of the names of files in a particular directory. |
edits