尝试将图像从android手机移动到硬盘驱动器时出现FileNotFoundError

时间:2019-09-10 14:14:05

标签: python android file-transfer shutil

我正在尝试创建一个程序,将所有图片从我的reddit文件夹传输到PC上的大容量存储中,但是python似乎找不到这些文件。


尝试:

  • 将反斜杠更改为正常斜杠
  • 卸下此PC

import shutil, os
reddit = "This PC\GM1911\Internal shared storage\Pictures\Reddit"
m_stor = "E:\memes"
files = os.listdir(path="This PC\GM1911\Internal shared storage\Pictures\Reddit")
for f in files:
    src = reddit+"\\"+f
    dst = m_stor+"\\"+f
    shutil.move(src,dst)

错误:

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'This PC\\GM1911\\Internal shared storage\\Pictures\\Reddit'

0 个答案:

没有答案