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 3a995172b7
commit 19f48084ea
2 changed files with 12 additions and 12 deletions
+1 -1
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{