Skip to content

Commit c4ad227

Browse files
committed
update glob
1 parent 05a7825 commit c4ad227

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎libs/atomicfile/atomicfile.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func Write(path string, data []byte, perm os.FileMode, opts ...Option) error {
5353

5454
// Temp file in the same directory so the rename stays on one filesystem.
5555
// The "." prefix hides a leftover temp file and the ".tmp" suffix lets
56-
// callers sweep leftovers with a "*.tmp" glob.
56+
// callers sweep leftovers with a ".*.tmp" glob.
5757
tmp, err := os.CreateTemp(dir, "."+filepath.Base(path)+".*.tmp")
5858
if err != nil {
5959
return fmt.Errorf("create temp file for %s: %w", path, err)

0 commit comments

Comments
 (0)