- Version:
v5.10.1
- Platform: 64-bit
- Subsystem: File System
When attempting to rename a file on my Windows 10 PC, I get the following error message:
...previous console output...
throw err;
^
Error: EPERM: operation not permitted, rename 'C:\Users\Gum-Joe\.retis\plugins\.tmp\extract\retis-tester-1-master' -> 'C:\Users\Gum-Joe\.retis\plugins\.tmp\extract\retis-example'
at Error (native)
I had a look at Medium/phantomjs#19, where one of the comments states that this issue is only on Windows, which is true for my issue as my program works on my Raspberry Pi, which runs Raspian.
Here is a small test case (~/ = windows home directory) :
- Create the directory
~/.retis/plugins/.tmp/extract/test
- Run this code:
const fs = require('fs');
const os = require('os');
fs.rename(
`${os.homedir()}/.retis/plugins/.tmp/extract/test`,
`${os.homedir()}/.retis/plugins/.tmp/extract/renamed`,
(err) => {
if (err) {
throw err;
}
};
Feel free to check out my own source code:
Coffee Script: https://github.com/jakhu/retis-ci/blob/master/src/plugins/unpacker.coffee
Compiled JavaScript: https://github.com/jakhu/retis-ci/blob/master/lib/plugins/unpacker.js
Thanks in advance!
v5.10.1When attempting to rename a file on my Windows 10 PC, I get the following error message:
I had a look at Medium/phantomjs#19, where one of the comments states that this issue is only on Windows, which is true for my issue as my program works on my Raspberry Pi, which runs
Raspian.Here is a small test case (
~/= windows home directory) :~/.retis/plugins/.tmp/extract/testFeel free to check out my own source code:
Coffee Script: https://github.com/jakhu/retis-ci/blob/master/src/plugins/unpacker.coffee
Compiled JavaScript: https://github.com/jakhu/retis-ci/blob/master/lib/plugins/unpacker.js
Thanks in advance!