Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (pendingRepos.length !=0 ){
- subruta = pendingRepos[pendingRepos.length -1]
- pendingRepos.pop()
- c.list(subruta, function(err, sublist) {
- if (sublist.length != 0){
- for (g=0; g < sublist.length; g++){
- if (sublist[g].type === 'd' ){
- repositories.push(subruta+'/'+sublist[g].name)
- pendingRepos.push(subruta+'/'+sublist[g].name)
- }
- else {files.push(subruta+'/'+sublist[g].name)}
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement