skip hiden files in user conf dir
This commit is contained in:
parent
9cc6e9fab6
commit
184ec43472
|
@ -110,6 +110,10 @@ func initUsers() {
|
|||
f.Close()
|
||||
|
||||
for _, name := range names {
|
||||
if strings.HasPrefix(name, ".") { // hiden files that not be created by Wide
|
||||
continue
|
||||
}
|
||||
|
||||
user := &User{}
|
||||
|
||||
bytes, _ := ioutil.ReadFile("conf/users/" + name)
|
||||
|
|
Loading…
Reference in New Issue