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:
5
zs.go
5
zs.go
@@ -243,6 +243,11 @@ func buildAll(watch bool) {
|
|||||||
if filepath.Base(path)[0] == '.' || strings.HasPrefix(path, ".") {
|
if filepath.Base(path)[0] == '.' || strings.HasPrefix(path, ".") {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
// inform user about fs walk errors, but continue iteration
|
||||||
|
if err != nil {
|
||||||
|
log.Println("ERROR:", err)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
os.Mkdir(filepath.Join(PUBDIR, path), 0755)
|
os.Mkdir(filepath.Join(PUBDIR, path), 0755)
|
||||||
|
|||||||
Reference in New Issue
Block a user