I don't quite understand what this `getPath` method does. If you want a directory path, you can use [`path.dirname`](http://nodejs.org/api/path.html#path_path_dirname_p).