[
https://issues.apache.org/jira/browse/CB-3427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13888375#comment-13888375
]
Jesse MacFadyen commented on CB-3427:
-------------------------------------
I've looked into this, and indeed verified that it is an issue.
Calls to fileEntry.getMetadata(gotMeta, fail); result in the callback being
called with {"modificationTime":null}
While calls to fileEntry.file(gotMeta, fail); result in the callback being
called with :
{"name":"","fullPath":"//DeviceID.txt","type":"text/plain","lastModifiedDate":"1/31/2014
3:58:57 PM","size":38,"start":0,"end":38}
I see several issues here, and will need to investigate other platforms, but my
concerns are:
1. getMetadata as specified is only supposed to return a 'modificationTime'
which I would hardly call meta, a better name for the function would be
getModificationTime
2. why do we call it modificationTime in one place, and lastModifiedDate in
another?
3. the object returned seems to be a string, while our docs state that it is a
Date object.
4. the WP codebase could be greatly simplified given that we have 2 calls to do
mostly the same thing, one working, and one not.
> Windows Phone 8 FileEntry.getMetadata returns a null Metadata.modificationTime
> ------------------------------------------------------------------------------
>
> Key: CB-3427
> URL: https://issues.apache.org/jira/browse/CB-3427
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File, WP7, WP8
> Affects Versions: 2.5.0, 2.6.0, 2.7.0
> Environment: Visual Studio 2012, Windows 8 Enterprise x64 bit
> Reporter: Kelvin Dart
> Assignee: Jesse MacFadyen
>
> Whenever I attempt to get the modificationDate in FileEntry.getMetadata in
> Windows Phone 8, I receive a Metadata object back in the success function,
> but the moficiationDate is null.
> The same chunk of code runs fine in Android and iOS. I can provide an example
> if required...
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)