I can't find the explanation on MDN right now, but you need to omitt the
leading /

2015-11-02 9:24 GMT+01:00 <[email protected]>:

> Le lundi 2 novembre 2015 08:31:30 UTC+1, Jovan Gerodetti a écrit :
> > No, what .enumerate() let's you do, is to get all files and
> subdirectories from a path. So if you enumerate
> /your-app-name/files/picture/ you'll get all the files of that directory.
> But if you enumerate / you'll get the entire storage.
> >
> >
> >
> > 2015-11-01 21:02 GMT+01:00  <[email protected]>:
> > Le dimanche 1 novembre 2015 20:56:00 UTC+1, [email protected] a écrit :
> >
> > > Le dimanche 1 novembre 2015 10:45:20 UTC+1, Jovan Gerodetti a écrit :
> >
> > > > What he is saying is basically not true. See
> https://developer.mozilla.org/en-US/docs/Web/API/DeviceStorage/enumerate
> >
> > > >
> >
> > > >
> >
> > > >
> >
> > > > 2015-11-01 10:38 GMT+01:00  <[email protected]>:
> >
> > > > I recently came accross this blog post. This guy is a developer & he
> coded apps for fxos. He is stating that device storage api is problematic.
> Read the article here
> www.firefoxoscentral.com/2015/10/meet-the-devs-developer-interview-tfe-server/
> >
> > > >
> >
> > > > _______________________________________________
> >
> > > >
> >
> > > > dev-fxos mailing list
> >
> > > >
> >
> > > > [email protected]
> >
> > > >
> >
> > > > https://lists.mozilla.org/listinfo/dev-fxos
> >
> > >
> >
> > > Hi all,
> >
> > >
> >
> > > Sorry for not posting in this forum before, i didn't knew the
> existence of this forum before this post :).
> >
> > >
> >
> > > So i was talking about the enumerate call.
> >
> > > Maybe it is a bug with the implementation of my FOS version:
> >
> > >
> >
> > >
> >
> > > So the calling mysdcard.enumerate('/')
> >
> > > should return an enumeration of all files and  accounts in the root
> directory, am i right?
> >
> > >
> >
> > > Strange things is that when i call it with '/', '/faildirectory',
> ['/test_with_arrays'], it always return a cursor with all the files and
> directories, without any filter of the path.
> >
> > >
> >
> > > Let me know if i am doing something wrong (surely).
> >
> > >
> >
> > > Thanks for all your work,
> >
> > >
> >
> > > --
> >
> > > tfe
> >
> >
> >
> > Had to mention too, that i gived up with my tries to use the enumerate
> with path calls, when i saw how it was not used by the "most used" file
> manager on firefoxos:
> >
> >
> https://github.com/elfoxero/file-manager/search?utf8=%E2%9C%93&q=enumerate
> >
> > Basically it think he is thinking the same as me: that there is no way
> get files/directories of only one directory, so he is caching all the
> result.
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > dev-fxos mailing list
> >
> > [email protected]
> >
> > https://lists.mozilla.org/listinfo/dev-fxos
>
> Yes, in theory, but when calling the call you are giving me, it just give
> me all the files, prefixed by '/your-app-name/files/picture.
>
> Here is a pastebin with my simple test:
> http://pastebin.com/TVBxKmwk
>
> Am i doing something wrong?
>
> Thanks,
>
> --
> tfe
>
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos
>
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to