def list_files(self, id=None, path="<STR_LIT:/>"):
if id:<EOL><INDENT>return self.request(id, params={"<STR_LIT:path>": path}, method="<STR_LIT>").json()<EOL><DEDENT>else:<EOL><INDENT>return self.request(params={"<STR_LIT:path>": path}, method="<STR_LIT>").json()<EOL><DEDENT>
List files in an allocation directory.

           https://www.nomadproject.io/docs/http/client-fs-ls.html

            arguments:
              - id
              - path          
            returns: list
            raises:
              - nomad.api.exceptions.BaseNomadException
              - nomad.api.exceptions.URLNotFoundNomadException