خرید بک لینک

Vote count: 0

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?

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 16 ارديبهشت 1395 ساعت: 21:27

صفحه بندی