Skip to content

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

@mike96265

Description

@mike96265

`
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions