Is there a simple way of finding out if a file is on the same filesystem as another file?
The following command:
import shutil
shutil.move('filepatha', 'filepathb')
will try and rename the file (if it's on the same filesystem), otherwise it will copy it, then unlink.
I want to find out before calling this command whether it will preform the quick or slow option, how do I do this?