I'm try to change folder name, but I get the next error:
{ [Error: EPERM, rename 'c:\nodejs\files\fm\File Manager\files\temp']
errno: -4048,
code: 'EPERM',
path: 'c:\\nodejs\\files\\fm\\File Manager\\files\\temp' }
My code is:
fs.rename(path + GET["fname"], path + GET['newname'], function (err) {
if (err) console.log(err);
});
Its works great with files, but with folders its throw an error
I think that this function (rename
) dosent work on foldes, any ideas?