Computer Science, asked by sounthariya1011999, 4 months ago

can we overwrite a file despite moving from one folder to another in python​

Answers

Answered by moonshrestha801
0

Answer:

yes, we can overwrite a file despite moving from one folder to another in python.

We can do it so by Moving and overwriting files and folders, For each file, simply shutil. copy() and the file will be created or overwritten, whichever is appropriate. Any pre-existing files will be removed first (via os. remove ) before being replace by the corresponding source file....

HOPE IT HELPS YOU :)

Similar questions