mirror of
https://github.com/restic/restic.git
synced 2025-12-12 13:33:15 +00:00
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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user