0 votes
1 view
in Python by (47.8k points)

How do I copy a file in Python?

I couldn't find anything under os.

1 Answer

0 votes
by (107k points)
edited by

For copying a file in Python you can use the shutil library which has many methods which you can use. 

One of them is as follows:-

from shutil import 

copyfile copyfile(src, dst)

To know more about this you can have a look at the following video tutorial:-

Related questions

0 votes
1 answer
+1 vote
2 answers
asked May 30, 2019 in Python by Ritik (3.5k points)
+1 vote
3 answers
asked May 21, 2019 in Python by Shivangi (13.2k points)
0 votes
1 answer
asked Jul 2, 2019 in Python by ParasSharma1 (13.5k points)
+3 votes
2 answers
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...