def xlistdir(path): return path

class Directory:
    listdir = xlistdir
    #...
    def listing(self):
    #....
        self.listdir("path")  #<---here
    #...
def xlistdir(path): return path

class Directory:
    listdir = xlistdir
    #...
    def listing(self):
    #....
        self.listdir("path")  #<---here
    #...
#... #.... #<---here #...