pyftpdlib icon indicating copy to clipboard operation
pyftpdlib copied to clipboard

I wonder why in filesystems.AbstractedFS.chdir use os.chdir

Open mike96265 opened this issue 6 years ago • 0 comments

` class AbstractedFS:

def chdir(self, path):

    """Change the current directory. If this method is overridden
    it is vital that `cwd` attribute gets set.
    """

    # note: process cwd will be reset by the caller

    assert isinstance(path, unicode), path

    os.chdir(path)

    self.cwd = self.fs2ftp(path)

` why AbstractFS.chdir going to use os.chdir here,It seems no effect.

and after I remove this line,this program works fine.

mike96265 avatar Dec 21 '18 10:12 mike96265