I use the following API to copy file to specific folder (which is working)
ncp(folderPath,__diame + "/newfolder", function (err) {
....
https://github.com/AvianFlu/ncp
c:UsersWebstormProjectsNodeParentnode_modulessamplenodeappcontroller
The problem is that this create for me a folder inside the controller of samplenodeapp(since the above code inside the controller) and I want it to create it one level up I mean
instead
samplenodeapp
-controller
-newFolder
I want
samplenodeapp
-controller
-newFoler
That the new folder will be in the same level of the controller,how its recommended to do it ?
of course I can split the value but there is better way to do it?
