mirror of
https://github.com/xiaoqidun/symfs.git
synced 2026-02-02 16:13:54 +08:00
feat(优化代码): 优化代码
This commit is contained in:
@@ -16,7 +16,6 @@ package fs
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"path"
|
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
@@ -481,10 +480,6 @@ func (s *SymFS) watch() {
|
|||||||
}
|
}
|
||||||
if info.FileNameLength > 0 {
|
if info.FileNameLength > 0 {
|
||||||
s.host.Notify(fullPath, fuseAction)
|
s.host.Notify(fullPath, fuseAction)
|
||||||
dir := path.Dir(fullPath)
|
|
||||||
if dir != "/" {
|
|
||||||
s.host.Notify(dir, fuseAction)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if info.NextEntryOffset == 0 {
|
if info.NextEntryOffset == 0 {
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user