skip hiden files in user conf dir

This commit is contained in:
Liang Ding 2015-02-16 11:16:56 +08:00
parent 9cc6e9fab6
commit 184ec43472
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,10 @@ func initUsers() {
f.Close() f.Close()
for _, name := range names { for _, name := range names {
if strings.HasPrefix(name, ".") { // hiden files that not be created by Wide
continue
}
user := &User{} user := &User{}
bytes, _ := ioutil.ReadFile("conf/users/" + name) bytes, _ := ioutil.ReadFile("conf/users/" + name)