Comments (2)
Hello Ben,
the MTP protocol supports three types of date for file system objects:
WPD_OBJECT_DATE_CREATED, WPD_OBJECT_DATE_MODIFIED and WPD_OBJECT_DATE_AUTHORED
If this data is not set correctly, it looks more like a problem in the MTP implementation of the device.
Have you tried this with several devices and if so with which ones?
Another idea would be to try out whether the WPD_OBJECT_PERSISTENT_UNIQUE_ID actually changes when you change a file. Eventually you can use that.
Regards
Ralf
from mediadevices.
Hello Ralf,
I tested it on three different phones (Huawei P30, Huawei Mate 9 and Galaxy S5). On both Huawei phones, instead of the creation-date the copy-timestamp was used and on the Galaxy phone no timestamp was shown in the fileinfo. If the Windows Explorer was used to transfer the files, all three phones showed the correct creation-date in the fileinfo.
Is it possible that in the method UploadFile
(in file "MediaDevicesShare/Internal/Item.cs") the implementation to transfer the creation-date (WPD.OBJECT_DATE_CREATED
) is missing?
Or is there another option to overwrite the creation-date after uploading a file to the phone?
Best regards,
Ben
from mediadevices.
Related Issues (20)
- OutOfMemoryException when downloading large files HOT 2
- Get Serial Port name? HOT 1
- Exception in `MediaDevice.VendorOpcodes` - 'ToInt does not work for value type VT_UI4'
- Incorrect Device Description HOT 2
- Application freezes after deleting files from device HOT 4
- NotImplementedException on console in .NetCore 3.1 project HOT 5
- Possible way to start service / application? HOT 1
- CopyThumbnail cause exception when copy an none Thumbnail media file like .rmvb HOT 1
- Can not connect again after call method 'MediaDevice.DeleteFile' HOT 2
- Using GetFileInfo for each file is in efficient HOT 2
- Unable to get the file name containing special characters correctly HOT 2
- Not an issue but rather a thank you HOT 2
- Reusing the same MemoryStream object for UploadFile throws COMException with HRESULT 0x800704C7 HOT 2
- Slow performance when using UploadFile with MemoryStream HOT 3
- Device cannot connect again HOT 8
- Expose writing Stream on MediaFileInfo HOT 1
- Avoid operation delay after delete object by setting the COOKIE policy HOT 2
- Checksum HOT 1
- UploadFile() issues HOT 1
- Redmi 9T: Can't get device friendly name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediadevices.