Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: common/dirwalk/callback.go

Issue 2054763004: luci-go/common/dirwalk: Code for walking a directory tree efficiently Base URL: https://github.com/luci/luci-go@master
Patch Set: Major rewrite of the code. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | common/dirwalk/doc.go » ('j') | common/dirwalk/tests/tools/gendir/content.go » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 package dirwalk
6
7 import "io"
8
9 // WalkFunc is a callback for receiving the results of walking a directory
10 // tree.
11 //
12 // r.Close() should be called if r is not nil.
13 //
14 // Callback for a directory will have a nil reader and occur *after* all the
15 // paths contained inside the directory have already been provided.
16 type WalkFunc func(path string, size int64, r io.ReadCloser, err error)
OLDNEW
« no previous file with comments | « no previous file | common/dirwalk/doc.go » ('j') | common/dirwalk/tests/tools/gendir/content.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698