Moving Files or Folder using Shutil Module in Python

Published: 10 August 2018
on channel: P prog
2,469
71

some rules and things to remember in short:
calling shutil.move(source,destination) will move the folder/file from
source ===to=== destination
1. if say destination as a file who's name is same as a source then it will be overwritten.
2. if destination mentions a new file name at its path then name in source will be changed to new file name.
3. if destination path mentions a folder and if its not there then file name will be changed to folder name.


Watch video Moving Files or Folder using Shutil Module in Python online without registration, duration hours minute second in high quality. This video was added by user P prog 10 August 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,469 once and liked it 71 people.