tonistiigi/mega

storage.files parse

Opened this issue · 3 comments

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

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

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.

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.