tonistiigi / mega

THIS REPO IS NOT MAINTAINED. Unofficial Node.js SDK for Mega
http://tonistiigi.github.com/mega
117 stars 33 forks source link

storage.files parse #12

Closed ghost closed 10 years ago

ghost commented 10 years ago

I cant parse storage.files, its bug or my fail ?

tonistiigi commented 10 years ago

Can you be more specific? Provide code sample and what error you get?

ghost commented 10 years ago

storage.files giving all files but i cant parse. this data looks like array but storage.files.lenght returs undefined, storage.files[0] undefined, storage.files["xx"] undefined, i think its my fail i am new on js.

tonistiigi commented 10 years ago

storage.files is not an array. Its an object that contains all the files by their node ID. If you need an array use storage.root or storage.mounts.