Odd wording it docs for shutil.move?

Grant Edwards grant.b.edwards at gmail.com
Fri Mar 3 12:13:04 EST 2017


At https://docs.python.org/2/library/shutil.html it says:

 shutil.move(src, dst)

    Recursively move a file or directory (src) to another location
    (dst).

    [...]

    If the destination is on the current filesystem, then os.rename()
    is used. Otherwise, src is copied (using shutil.copy2()) to dst
    and then removed.

What does the current filesystem have to do with anything?

Surely, what matters is whether <src> and <dst> are on the same
filesystem?

-- 
Grant Edwards               grant.b.edwards        Yow! Now we can become
                                  at               alcoholics!
                              gmail.com            



More information about the Python-list mailing list