cancel
Showing results for 
Search instead for 
Did you mean: 

Grab All Space's Files

vbfischer
Champ in-the-making
Champ in-the-making
Is there a way to grab all the files contained in a space other than iterating through them with the content reader? I just want to start with a NodeRef of a space and grab all of its files…
4 REPLIES 4

zladuric
Champ on-the-rise
Champ on-the-rise
Javascript?

function doclist(doc)
{
  var daddy = doc.parrent;
 
  for each (kid in daddy.children)
  {
     getStuffYouWantToGetFromA(kid);
  }
}

zladuric
Champ on-the-rise
Champ on-the-rise
Oops, missed a bit here, you're starting with the space already, not with a document…
Even simpler:
for each (child in folder.children)
{
  getChildPropertiesYouReInterestedIn(child);
}

vbfischer
Champ in-the-making
Champ in-the-making
thanks. That helps.

zladuric
Champ on-the-rise
Champ on-the-rise
Yay, my first "thanks" here Smiley Happy

I guess that means I'm no longer a beginner Smiley Happy