def ls(self):
if self.isfile():<EOL><INDENT>raise NotDirectoryError('<STR_LIT>'.format(path=self._pyerarchy_path))<EOL><DEDENT>return os.listdir(self._pyerarchy_path)<EOL>
List the children entities of the directory.

        Raises exception if the object is a file.

        :return: