Using subprocess to call mv assumes that the shell command mv exists
and its operation is to move files. This move operation would fail if
mv doesn't exist or has been modified to perform some other operation.
Using Python's built-in os.rename is more reliable.
Using subprocess to call
mv
assumes that the shell commandmv
exists and its operation is to move files. This move operation would fail ifmv
doesn't exist or has been modified to perform some other operation.Using Python's built-in
os.rename
is more reliable.