code: def _list_dir(self, path):
          
          try:
              elements = [
                  os.path.join(path, x) for x in os.listdir(path)
              ] if os.path.isdir(path) else []
              elements.sort()
          except OSError:
              elements = None
          return elements
docs: returns absolute paths for all entries in a directory