Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
7edfcede
Commit
7edfcede
authored
Sep 14, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path/filepath: document that Walk sorts its output
R=golang-dev, cw CC=golang-dev
https://golang.org/cl/5004045
parent
4e6f951e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
path.go
src/pkg/path/filepath/path.go
+3
-1
No files found.
src/pkg/path/filepath/path.go
View file @
7edfcede
...
@@ -302,7 +302,9 @@ func walk(path string, info *os.FileInfo, walkFn WalkFunc) os.Error {
...
@@ -302,7 +302,9 @@ func walk(path string, info *os.FileInfo, walkFn WalkFunc) os.Error {
// Walk walks the file tree rooted at root, calling walkFn for each file or
// Walk walks the file tree rooted at root, calling walkFn for each file or
// directory in the tree, including root. All errors that arise visiting files
// directory in the tree, including root. All errors that arise visiting files
// and directories are filtered by walkFn.
// and directories are filtered by walkFn. The files are walked in lexical
// order, which makes the output deterministic but means that for very
// large directories Walk can be inefficient.
func
Walk
(
root
string
,
walkFn
WalkFunc
)
os
.
Error
{
func
Walk
(
root
string
,
walkFn
WalkFunc
)
os
.
Error
{
info
,
err
:=
os
.
Lstat
(
root
)
info
,
err
:=
os
.
Lstat
(
root
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment