Re: [CommonJS] Filesystem API: stat

40 views
Skip to first unread message

Kris Kowal

unread,
Aug 31, 2009, 4:50:15 PM8/31/09
to comm...@googlegroups.com
[Changed Topic]

On Mon, Aug 31, 2009 at 1:11 PM, Ash Berlin<ash_g...@firemirror.com> wrote:
>
> On the subject of stat, I was thinking that perhaps stat should only
> contain entries for the metadata that can be reliably gathered cross
> platform (i.e. particualrly not deviceNumber etc.), and move those
> extra fields into say, |require('posix').stat('file')| so that code
> has to make a conscious choice to not be portable across platforms?
> Thoughts?

I think this is reasonable.

Kris Kowal

Wes Garland

unread,
Aug 31, 2009, 4:56:26 PM8/31/09
to comm...@googlegroups.com
Agreed.

Note that "creationTime" is not gatherable cross-platform.  (I forget if it made in to the spec or not, just wanted to point it out).

How do you guys feel about permissions, file type, and ownership?

Wes
--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
Reply all
Reply to author
Forward
0 new messages