Bugfix

Flag: _isDirectory was buggy