move-ts icon indicating copy to clipboard operation
move-ts copied to clipboard

Cant change file name case on windows

Open PFight opened this issue 7 years ago • 3 comments

When I try to rename "atomize" to "Atomize" I get error: c:\Main\Work\syncretic\app\utils\Atomize.ts already exists.

VSCode version: 1.18.1 MoveTS version: 1.50 Windows: 8.1 Pro

PFight avatar Nov 26 '17 08:11 PFight

Solution probably is to pass { overwrite: true } to moveAsync due to https://github.com/overlookmotel/fs-extra-promise/issues/25 and maybe use newer fs-extra.

PFight avatar Nov 26 '17 09:11 PFight

This error happens before we attempt to do the move. We check that the location you are attempting to move to does not already exist: https://github.com/stringham/move-ts/blob/da386627c841b827a6e1cf121e20d507f876205a/src/extension.ts#L48-L51

Is there a way to check for file existence in a case sensitive way across file systems?

stringham avatar Jan 08 '18 21:01 stringham

Happens also on osx

hepiyellow avatar Feb 07 '18 06:02 hepiyellow