FIX: _getDirectoryFiles returns a proper status instead of its index