Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. while (pendingRepos.length !=0 ){
  2. subruta = pendingRepos[pendingRepos.length -1]
  3. pendingRepos.pop()
  4. c.list(subruta, function(err, sublist) {
  5. if (sublist.length != 0){
  6. for (g=0; g < sublist.length; g++){
  7.  
  8. if (sublist[g].type === 'd' ){
  9. repositories.push(subruta+'/'+sublist[g].name)
  10. pendingRepos.push(subruta+'/'+sublist[g].name)
  11. }
  12.  
  13. else {files.push(subruta+'/'+sublist[g].name)}
  14. }
  15.  
  16. }
  17. });
  18.  
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement