Closed dolftax closed 8 years ago
There is no way to do this, since even on moderate sized folders computing this will be too slow, and the resulting object will be too large. How do you want to use this? in some cases data from filelist can help.
On click of a folder, fetching from the array of objects could end up as a bad UX. No?
On click of a folder, fetching from the array of objects could end up as a bad UX. No?
I am not sure what you mean. Currently in cloud9, when opening a folder, loading animation is displayed until the list of files is fetched, and it seems to work ok.
That makes sense. I just ended up doing the same.
Initially, I was thinking, loading on demand (even file/folder listing) would make the user to wait for a moment and thought of loading the folder meta recursively with a service worker. :-\
Consider,
var options = { recursive : true}
. Thenvfs.readdir('/', options)
should return array of objects with if an object is a folder, it should have a child object which has the meta of the files/folders inside it.