Move File.stat() -> Stat.path().

Thanks, Michel!
This commit is contained in:
Bob Nystrom
2016-02-07 09:56:16 -08:00
parent ffb5ada9fb
commit 79558d95e5
11 changed files with 95 additions and 91 deletions
-7
View File
@@ -35,13 +35,6 @@ whatever encoding the file uses.
Returns the size in bytes of the contents of the file at `path`.
### File.**stat**(path)
"Stats" the file or directory at `path`. Returns a [Stat][] object describing
the low-level details of the file system entry.
[stat]: stat.html
## Constructors
### File.**open**(path)
+6 -2
View File
@@ -1,8 +1,12 @@
^title Stat Class
Contains the data returned by [File.stat()][stat].
A data structure describing the low-level details of a file system entry.
[stat]: file.html#file.stat(path)
## Static Methods
### Stat.**path**(path)
"Stats" the file or directory at `path`.
## Methods
+3
View File
@@ -29,6 +29,7 @@
<ul>
<li><a href="directory.html">Directory</a></li>
<li><a href="file.html">File</a></li>
<li><a href="stat.html">Stat</a></li>
<li><a href="stdin.html">Stdin</a></li>
</ul>
</section>
@@ -45,11 +46,13 @@
<tr>
<td>
<ul>
<li><a href="directory.html">Directory</a></li>
<li><a href="file.html">File</a></li>
</ul>
</td>
<td>
<ul>
<li><a href="stat.html">Stat</a></li>
<li><a href="stdin.html">Stdin</a></li>
</ul>
</td>