Python:导航到便携式设备目录(Windows 7) [英] Python: Navigate to portable devices directory (Windows 7)

查看:26
本文介绍了Python:导航到便携式设备目录(Windows 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解决一个我的问题已创建 关于如何读取我用 Windows 手机拍摄的视频的录制日期.当文件同步"到我的电脑时,创建日期似乎被覆盖了.

I'm trying to solve a question I have created about how to read the recorded date of the videos I took with a windows phone. It seems that the creation date are overwritten when the files are "sync" to my computer.

我试图通过直接查看手机中的文件来解决这个问题.所以我需要访问

I'm trying to get around this by looking at the files in the phone directly. So I need to access to

"Computer\Windows Phone\Phone\Pictures\Camera Roll" 

我的问题是我只能让 os.chdir() 处理以 C:// 为 root 的路径

My problem is that I can only get os.chdir() to work on paths that has C:// as root

有什么建议吗?

我试图放置并运行一个打印当前目录的文件.这给了我结果

I tried to place and run a file that prints the current directory. Which gave me the result

C:\Users\<myUser~1.COM>\AppData\Local\Temp\WPDNSE\{<a lot of numbers and dashes>}

推荐答案

可能手机是通过 MTP 连接的.

Maybe the phone is connect via MTP.

如何使用 python 访问 MTP USB 设备

那可以帮上忙.

他们在那里提到了口径.calibre mabye 源代码已经包含了获取移动设备文件信息的功能.

They mentioned calibre there. The source code of calibre mabye already contain functions for getting file informations on mobile devices.

这篇关于Python:导航到便携式设备目录(Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆