You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like it's trying to rename the cwd (as I'm testing the cli I'm working on in the bin folder directly). The same thing happens when I use npm link and test it in a newly created test directory.
@andrewrk am I missing a setting or something, or is this just not possible with mv?
The text was updated successfully, but these errors were encountered:
+1 I get another error but is when trying to move a folder one level up (Like moving to ../)
fs.js:310
binding.stat(pathModule._makeLong(path), req);
^
TypeError: path must be a string or Buffer
at Object.fs.exists (fs.js:310:11)
at Object.destExists (...)
(...)/node_modules/node-mv/index.js:50:76
at FSReqWrap.cb [as oncomplete] (fs.js:312:19)
Code
What is tested so far, is taken directly from examples:
/** * Moves the directory tree one level up. * @param {string} from * @returns {Promise} */__moveDirs(from){returnnewPromise((resolve,reject)=>{mv(from,this.__dest,(err)=>{if(err){reject(err);}else{resolve();}});});}
I'm trying to move files from a subfolder to
process.cwd()
but when I try, it gives anENOTEMPTY
error.It seems like it's trying to rename the cwd (as I'm testing the cli I'm working on in the
bin
folder directly). The same thing happens when I usenpm link
and test it in a newly created test directory.@andrewrk am I missing a setting or something, or is this just not possible with
mv
?The text was updated successfully, but these errors were encountered: