Skip to content

Commit

Permalink
actually, we are the ones creating empty files on purpose :(
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Jul 3, 2023
1 parent 51053db commit 0c47ce5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package metadata

import (
"context"
"errors"
"io"
"io/fs"
"os"
Expand Down Expand Up @@ -174,7 +173,7 @@ func (b MessagePackBackend) saveAttributes(ctx context.Context, path string, set
}
case len(msgBytes) == 0:
// ugh. an empty file? bail out
return errors.New("encountered empty metadata file")
// return errors.New("encountered empty metadata file") // actually this is normal when we write new files, because initNewNode creates an empty file for the mtime
default:
// only unmarshal if we read data
err = msgpack.Unmarshal(msgBytes, &attribs)
Expand Down

0 comments on commit 0c47ce5

Please sign in to comment.