[Filesystem] Fix and complete the API

Implement the spec.
Fix and pass the TCT tests.
Fix and complete the example.

BUG=XWALK-1071
BUG=XWALK-1827
Sorry I've missed this too.


On Wed, Jul 2, 2014 at 10:52 AM, Halton Huo <notifications@github.com>
wrote:

> In examples/filesystem.html:
>
> > -   } catch (e) {
> > -      console.log(e);
> > -   }
> > -
> > +   var dirpath = path.substring(0, path.lastIndexOf('/'));
> > +   tizen.filesystem.resolve(
> dirpath, function(dir) {
> > +     try {
> > +        dir.deleteFile(path,
> > +          function() {
> > +             console.log('Deleted ' + this + ' with success');
> > +          }.bind(this.filePath),
> > +          function(error) {
> > +             console.log('Error while deleting: ' + JSON.strinfigy(error));
> > +          });
> > +     } catch (e) {
> > +        console.log(e);
>
> ditto, 3-space indent is incorrect, sorry miss this one in last round
> review.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/crosswalk-project/tizen-extensions-crosswalk/pull/336/files#r14446739>
> .
>