On Friday, January 18, 2013 9:42:10 PM UTC-7, Isaac Schlueter wrote: > > On Fri, Jan 18, 2013 at 7:34 PM, Jake Verbaten > <[email protected]<javascript:>> > wrote: > > You could just move your files to the root of your folder. If there are > too > > many files then don't have so many files. > > This. Exactly this. >
You cannot make the assumption that that's the one correct way to do things. Even if you can't think of a reason that someone would want to stuff their files in a subdirectory, that's no reason at all to not allow it. A module is just special type of function. How it gets resolved to a file is the job of Node.js, and one method of resolving a file must not be prohibited on the basis of "well I wouldn't do it that way." The more Node.js can be decoupled from filesystem organisation, especially for the sake of implementations that we presently cannot dream of, the better. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
