Commit 1ce2903
authored
fix: ignore temp files in scriptor watch mode (#223)
Anchor the .py regex to end-of-string so editor temp files like
`foo.py.tmp.XXX` are no longer matched. Add an existence
check before getmtime() as a second guard against race conditions
where a transient file disappears before it can be processed.1 parent a07f82f commit 1ce2903
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | 375 | | |
377 | 376 | | |
| 377 | + | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
| |||
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
389 | | - | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
0 commit comments