mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 08:48:32 +02:00
simplify icon caching and homepage item override
This commit is contained in:
@@ -113,6 +113,10 @@ func (h *DirWatcher) start() {
|
||||
relPath := strings.TrimPrefix(fsEvent.Name, h.dir)
|
||||
relPath = strings.TrimPrefix(relPath, "/")
|
||||
|
||||
if len(relPath) > 0 && relPath[0] == '.' { // hideden file
|
||||
continue
|
||||
}
|
||||
|
||||
msg := Event{
|
||||
Type: events.EventTypeFile,
|
||||
ActorName: relPath,
|
||||
|
||||
Reference in New Issue
Block a user