Is there an easy way to find out if a file is on the same file system as another file?
Next command:
import shutil shutil.move('filepatha', 'filepathb')
will try to rename the file (if it is in the same file system), otherwise it will copy it and then disconnect.
I want to know before calling this command whether it will execute a fast or slow version, how to do it?
source share