简体   繁体   English

用于在 Windows 10 上访问 android 文件系统的 python 脚本

[英]python script for accessing android filesystem on windows 10

I have written a script which copies all files of a particular type to a certain folder.我编写了一个脚本,将特定类型的所有文件复制到某个文件夹。 I also wish to run this script on my connected mobile (which runs android), but I am struggling to get hold of files on my connected phone:我也希望在我连接的手机(运行 android)上运行这个脚本,但我很难在我连接的手机上获取文件:

scr.copyfiles(r'This PC\Galaxy S7\Phone\Download\photo.jpg',dest_folder)

This returns a filenotfound error.这将返回 filenotfound 错误。 How do I access files located on my phone?如何访问手机上的文件?

你可以这样写

phone_dir = os.path.join('Computer', 'Galaxy S7', 'Phone', 'Download')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM