mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 19:21:25 +00:00
Ignore temp files created by IntelliJ when saving
This commit is contained in:
parent
cb8f459127
commit
277425bada
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ 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")
|
||||
istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___")|| strings.HasSuffix(ext, "jb_bak___")
|
||||
if istemp {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue