This article discussed handling file operations in Node.js, which has some interesting methods for gathering file statistics along with determining what type of entity you are working with (i.e., a file or directory). Some of the file stats will be different across different operating systems. Node.js, like most other languages, includes easy-to-use methods for opening, reading, writing, and closing files.
I recommend becoming familiar with these methods and properties by setting up a test environment and using the preceding code examples and/or extending them yourself to make sure you get a good grip on handling files with Node.js.
You should also learn about the methods of the fs module for managing directories, which were not discussed in this article. A good resource for working with the file system in Node.js can be found here: http://nodejs.org/api/fs.html.