shutil.move will use copy2 as a fallback if os.rename fails. copy2 works in two stages: (1) actually copying the file and (2) adjusting its permissions. Step 2 will fail, though the copied file exists at the desired destination. This is supposed to only happen between file systems but @julia326 observed it in a situation that we think is the same file system.
shutil.movewill usecopy2as a fallback ifos.renamefails.copy2works in two stages: (1) actually copying the file and (2) adjusting its permissions. Step 2 will fail, though the copied file exists at the desired destination. This is supposed to only happen between file systems but @julia326 observed it in a situation that we think is the same file system.