Question

Is there a way to prevent PyCharm / IntelliJ from removing empty folders?

I write output files to a folder in my project. When I delete them, the default behaviour of PyCharm is to remove the empty folder.

Can I prevent this?

Était-ce utile?

La solution

When you delete the last file in a directory from Git in the command line (git rm dir/file.txt), Git itself automatically deletes the whole directory.

In other words: IDE behaves the same as Git does.

Can I prevent this?

Nope. At least not at the moment.

http://youtrack.jetbrains.com/issue/IDEA-75590 -- watch this ticket (star/vote/comment) to get notified for any progress.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top