PyCharm / IntelliJ removes empty default folders

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

I am writing output files to a folder in my project. When I delete them, PyCharm's default behavior is to delete an empty folder.

Can I prevent this?

+4
source share
1 answer

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

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

Can I prevent this?

Nope. At least for now.

http://youtrack.jetbrains.com/issue/IDEA-75590 - (//), .

+5

Source: https://habr.com/ru/post/1535765/


All Articles