How to get the directory of a file?
For example, I pass in a string
C:\\Program Files\\nant\\bin\\nant.exe
I want a function that r
filepath.split("/").slice(0,-1).join("/"); // get dir of filepath
such that
"/path/to/test.js".split("/").slice(0,-1).join("/") == "/path/to"