mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Ignore temporary file "4913" created by Vim
This commit is contained in:
parent
42f43ad433
commit
2d11551c53
1 changed files with 9 additions and 1 deletions
|
@ -711,7 +711,15 @@ func NewWatcher(port int) error {
|
|||
|
||||
for _, ev := range evs {
|
||||
ext := filepath.Ext(ev.Name)
|
||||
istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || strings.HasSuffix(ext, "jb_bak___") || (ext == ".DS_Store")
|
||||
istemp := strings.HasSuffix(ext, "~") ||
|
||||
(ext == ".swp") ||
|
||||
(ext == ".swx") ||
|
||||
(ext == ".tmp") ||
|
||||
(ext == ".DS_Store") ||
|
||||
filepath.Base(ev.Name) == "4913" ||
|
||||
strings.HasPrefix(ext, ".goutputstream") ||
|
||||
strings.HasSuffix(ext, "jb_old___") ||
|
||||
strings.HasSuffix(ext, "jb_bak___")
|
||||
if istemp {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue