Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions error on copy #114

Open
debelop13 opened this issue Jan 16, 2017 · 1 comment
Open

Permissions error on copy #114

debelop13 opened this issue Jan 16, 2017 · 1 comment

Comments

@debelop13
Copy link

Hello!

I have permissions errors when I am using ncp,

Like this "Uncaught Error: EACCES: permission denied, open" or "Uncaught Error: EACCES: permission denied, mkdir".

Exists an option to solve this?

Thanks

@samsungapore
Copy link

samsungapore commented Jan 31, 2018

i have the same type of error

Error: EPERM: operation not permitted, unlink 'C:\Users\Administrator\Documents\desktop.ini'
0|Mirai_Bo |     errno: -4048,
0|Mirai_Bo |     code: 'EPERM',
0|Mirai_Bo |     syscall: 'unlink',
0|Mirai_Bo |     path: 'C:\\Users\\Administrator\\Documents\\desktop.ini' }

And here is the code :

let ncp = require('ncp').ncp;

ncp.limit = 16;

setInterval(function () {
    ncp("../../Danganronpa 2 traduction FR/", "../../../Documents/", function (err) {
        if (err) {
            return console.error(err);
        }
        console.log('Backup of DR2 done');
    });
}, 60000 * 60 * 60 * 48);

The source folder is located on my dropbox shared folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants