karrick / godirwalk

Fast directory traversal for Golang
BSD 2-Clause "Simplified" License
706 stars 70 forks source link

Allow non directory #40

Closed karrick closed 4 years ago

karrick commented 4 years ago

AllowNonDirectory causes Walk to bypass the check that ensures it is being called on a directory node, or when FollowSymbolicLinks is true, a symbolic link that points to a directory. Leave this value false to have Walk return an error when called on a non-directory. Set this true to have Walk run even when called on a non-directory node.