Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Mix-ide Create Poject wipes existing directory without warning. #521

Closed
o0ragman0o opened this issue May 20, 2016 · 4 comments
Closed

Mix-ide Create Poject wipes existing directory without warning. #521

o0ragman0o opened this issue May 20, 2016 · 4 comments
Labels

Comments

@o0ragman0o
Copy link

I've just lost an entire months DAPP work and associated research because MIX first became corrupted, then wiped my project directory without warning when I tried to rebuild the project a new in the same directory.

To repoduce behaviour (on Windows 10 at least):

Start mix-ide
create new project -> creates project directory and files
create another new project in the same directory -> deletes previous project directory and fails create new project.

@bobsummerwill
Copy link
Contributor

Yikes, @o0ragman0o!

Sorry to hear that. Thanks for the bug report.

Backup routines are so important, eh? Not that it helps you now.

I hope you've managed to get going again quickly enough?

@o0ragman0o
Copy link
Author

o0ragman0o commented May 23, 2016

@bobsummerwill,
Fileio::mkdir() looks to perform an unconditional recursive remove if it detects an existing directory.

https://github.com/ethereum/mix/blob/6cb09e75a2cdf8c66d169a80d4c7d3d7e5396a60/src/FileIo.cpp#L106

@bobsummerwill
Copy link
Contributor

Yeah - that is pretty terrible, isn't it :-(

Thanks again for the report.

@bobsummerwill
Copy link
Contributor

I believe this was fixed, right, @yann300, @chriseth?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants