Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

shutil.copy2 can't copy files between disk drives using Python

i am working on copying files between two disk drives that is from D drive to E drive , but when using shutil.copy2 and shutil.move am getting error like :

The system cannot move the file to a different disk drive:

and this is code i used :

file = "D:Ask"
dst = "E:Ask"
shutil.copy2(file, dst)

Platform : Windows Python Version : Python 3.8.5


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...