added check for fs walk errors
git-svn-id: file:///srv/svn/repo/aya/trunk@31 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
parent
28957b58a1
commit
443716fb2a
5
zs.go
5
zs.go
@ -243,6 +243,11 @@ func buildAll(watch bool) {
|
||||
if filepath.Base(path)[0] == '.' || strings.HasPrefix(path, ".") {
|
||||
return nil
|
||||
}
|
||||
// inform user about fs walk errors, but continue iteration
|
||||
if err != nil {
|
||||
log.Println("ERROR:", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
os.Mkdir(filepath.Join(PUBDIR, path), 0755)
|
||||
|
Loading…
x
Reference in New Issue
Block a user