Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CountFile 与 GetFilePath #4

Open
mintzhao opened this issue Oct 18, 2016 · 1 comment
Open

CountFile 与 GetFilePath #4

mintzhao opened this issue Oct 18, 2016 · 1 comment

Comments

@mintzhao
Copy link

为了获取文件个数,和文件路径。进行了两次filepath.Walk,这样的解决方案是否不妥?

@cuijiabin
Copy link
Owner

case <-tick:
w.Flush()
if len(c) < 1 {
fmt.Println("文件统计结束")
return
}

当文件读取channel为空的时候结束

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants