stringham / move-ts

A Visual Studio Code plugin for updating relative imports when moving typescript files and folders in your workspace.
MIT License
52 stars 15 forks source link

Cant change file name case on windows #13

Open PFight opened 6 years ago

PFight commented 6 years ago

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 commented 6 years ago

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.

stringham commented 6 years ago

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?

hepiyellow commented 6 years ago

Happens also on osx