NOEXTRACT_CMD = rsutil.common.config_get_value ('commands', 'noextract')
# Make sure that both files are not the same file. If they are, don't run at all.
- if os.path.samefile (file, os.path.join (todir, file)):
+ # NOTE: os.path.samefile() doesn't exist on win32, so we can't use it.
+ if rsutil.common.full_abspath (file) == \
+ rsutil.common.full_abspath (os.path.join (todir, file)):
return rsutil.common.SUCCESS
cmd = NOEXTRACT_CMD % (file, todir)