suggested modification implemented but still without the redundancy on _showRootDirectory