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
If you use typescript, path module is quite handy.
typescript
path
path.dirname("/home/workspace/filename.txt") // '/home/workspace/'