<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _list_files(self, path):
 """lists files in a given directory"""

        files = []
        for f in glob.glob(pathname=path):
            files.append(f)
        files.sort()
        return files