Skip to content
New issue

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

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

Already on GitHub? # to your account

EPERM: operation not permitted, utime '/mnt/windows/...' #41

Open
spidgorny opened this issue Aug 31, 2020 · 4 comments
Open

EPERM: operation not permitted, utime '/mnt/windows/...' #41

spidgorny opened this issue Aug 31, 2020 · 4 comments

Comments

@spidgorny
Copy link

The way my Samba share is mounted I can copy the files, but changing utime is not permitted.
This leads to EPERM: operation not permitted, utime error.
I'd like to ask for an option to disable calling fs.utimes after copying.
This may be related to #22 but instead of chmod I need utimes disabled.

@papb
Copy link

papb commented Aug 31, 2020

How about just trying to call fs.utimes and silently ignoring any error? I think that would be better than having an option... Perhaps the same could be done with the fs.chmod call as well.

@sindresorhus
Copy link
Owner

That would be a better solution. I don't think we should do it to chmod though at it's more important that it succeeds.

@spidgorny
Copy link
Author

Ignoring the error would probably have worked for me. But I have already added the option in PR #42.

@sindresorhus
Copy link
Owner

#42

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

No branches or pull requests

3 participants