cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Clelland (JIRA)" <>
Subject [jira] [Commented] (CB-5959) Entry.getMetadata missing "size"
Date Fri, 07 Feb 2014 15:48:20 GMT


Ian Clelland commented on CB-5959:

I've updated the JS side of the plugin, so now it will accept either an integer returned from
getMetadata, which is taken as a timestamp, or an object with keys {{modificationTime}} and

The mobilespec tests now check that size is returned, and is correctly set to 0 for directories.

Android and iOS are updated to pass these new spec tests.

> Entry.getMetadata missing "size"
> --------------------------------
>                 Key: CB-5959
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 3.3.0
>         Environment: android all versions
>            Reporter: Kyle Graehl
>            Assignee: Ian Clelland
>            Priority: Trivial
>              Labels: newbie
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> According to, Metadata should
have a "size" attribute.
> When calling DirectoryEntry.getFile with the {create:true} attribute, it creates a new
file. When subsequently calling getMetadata on this entry, it is missing the "size" attribute
(which should be in this case, 0). The lastModified is however, present.

This message was sent by Atlassian JIRA

View raw message