5

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" 

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

Any suggestions?

Update

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>}
Community
  • 1
  • 1
Norfeldt
  • 8,272
  • 23
  • 96
  • 152

2 Answers2

0

I am not familiar with Windows Phone paths in particular, but you should be able to figure out the "real" path by using the Windows file explorer to look at the properties of a file or folder. Right-click, choose Properties and look for a Location field.

Note that some "folders", such as the ones under "Libraries", are actually XML files pointing to multiple other locations.

Soulman
  • 2,910
  • 24
  • 21
0

Maybe the phone is connect via MTP.

How to access an MTP USB device with python

could help then.

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

Community
  • 1
  • 1
Kuishi
  • 157
  • 4