• This project
    • Loading...
  • Sign in

bluejoyq / LINEBOT

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • LINEBOT
  • node_modules
  • walkdir
  • test
  • comparison
  • lsr.js
  • 김수민's avatar
    audio · 03d4d615
    03d4d615
    김수민 authored 2019-11-18 21:45:26 +0900
lsr.js 364 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
var lsr = require('ls-r');

lsr(process.argv[2]||'./',{maxDepth:500000,recursive:true},function(err,origPath,args){
	if(err) {
		console.log('eww an error! ',err);
		return;
	}
//console.log('hit');
	var c = 0;
	args.forEach(function(stat){
		if(stat.isFile()){
			console.log(stat.path);
			c++;
		}
	});

	console.log('found '+args.length+" regular files");
});