Copy the file from .babel before trying to delete the directory
This commit is contained in:
parent
1efd705731
commit
a353dfdb5d
1 changed files with 2 additions and 2 deletions
|
|
@ -118,9 +118,9 @@ proc renameBabelToNimble(options: TOptions) {.deprecated.} =
|
|||
if dirExists(babelDir):
|
||||
if options.prompt("Found deprecated babel package directory, would you like to rename it to nimble?"):
|
||||
copyDir(babelDir, nimbleDir)
|
||||
removeDir(babelDir)
|
||||
|
||||
copyFile(babelDir / "babeldata.json", nimbleDir / "nimbledata.json")
|
||||
|
||||
removeDir(babelDir)
|
||||
removeFile(nimbleDir / "babeldata.json")
|
||||
|
||||
proc parseCmdLine(): TOptions =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue