Browse Source

ft:xxxx

master
SisMaker 3 years ago
parent
commit
7ac8cf4dd2
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      fileSync.go

+ 2
- 4
fileSync.go View File

@ -162,6 +162,7 @@ func (w *Watch) watchDir(dir string) {
} }
return nil return nil
}) })
for _, v := range AddDirs { for _, v := range AddDirs {
if v != "" && existPath(v) { if v != "" && existPath(v) {
//通过Walk来遍历目录下的所有子目录 //通过Walk来遍历目录下的所有子目录
@ -186,10 +187,7 @@ func (w *Watch) watchDir(dir string) {
//for _, v := range AddDirs { //for _, v := range AddDirs {
// if v != "" && existPath(v) { // if v != "" && existPath(v) {
// path, err := filepath.Abs(path)
// if err != nil && !isHidden(path) {
// w.watch.Add(path)
// }
// w.watch.Add(v)
// } // }
//} //}

Loading…
Cancel
Save