mirror of https://github.com/maxcnunes/gaper.git
parent
7f5268751f
commit
e4d6c94e65
|
@ -138,6 +138,12 @@ func (w *watcher) scanChange(watchPath string) (string, error) {
|
|||
}
|
||||
|
||||
func (w *watcher) ignoreFile(path string, info os.FileInfo) bool {
|
||||
// if a file has been deleted after gaper was watching it
|
||||
// info will be nil in the other iterations
|
||||
if info == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
// check if preset ignore is enabled
|
||||
if w.defaultIgnore {
|
||||
// check for hidden files and directories
|
||||
|
|
Loading…
Reference in New Issue