OLD | NEW |
(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 // Interface for receiving the results of walking a directory tree. |
| 8 // |
| 9 // For performance reasons, small files and large files are treated |
| 10 // differently. |
| 11 // |
| 12 // SmallFile and LargeFile must be called in sorted order. |
| 13 type WalkObserver interface { |
| 14 SmallFile(filename string, alldata []byte) |
| 15 LargeFile(filename string) |
| 16 |
| 17 //StartDir(dirname string) error |
| 18 //FinishDir(dirname string) |
| 19 |
| 20 Error(pathname string, err error) |
| 21 |
| 22 Finished() |
| 23 } |
OLD | NEW |