fs/reader: use modification time for file and directories

This ensures that a fixed input generates a fully deterministic output
file structure.
This commit is contained in:
Michael Eischer
2025-04-11 21:43:31 +02:00
parent 236f81758e
commit 07e4a78e46
2 changed files with 12 additions and 12 deletions

View File

@@ -66,7 +66,7 @@ func NewReader(name string, r io.ReadCloser, opts ReaderOptions) *Reader {
fi := &ExtendedFileInfo{
Name: path.Base(name),
Mode: os.ModeDir | 0755,
ModTime: time.Now(), // FIXME
ModTime: opts.ModTime,
Size: 0,
}
items[name] = readerItem{