Your comments

On the other hand, disabling showing subdirectories' files (shortcut ctrl + 0) gives me what I needed. Thx :)

If this is the only reason you wouldn't provide this functionality, then just prevent selecting the directory and files at the same time. Tree view would be so helpful to look through the overall repository structure.