forked from TrueCloudLab/restic
5d6ce59a8d
Files for which no blobs have to be restored, still have to be truncated to the correct size. Take a file with content "foobar" that should be replaced by restore with content "foo". The first three bytes are already uptodate, such that no data has to be written. As file truncation normally happens when writing data, a special case is necessary. This no blobs written special case is unified with the empty file special case. |
||
---|---|---|
.. | ||
doc.go | ||
filerestorer.go | ||
filerestorer_test.go | ||
fileswriter.go | ||
fileswriter_other_test.go | ||
fileswriter_test.go | ||
fileswriter_windows_test.go | ||
hardlinks_index.go | ||
hardlinks_index_test.go | ||
restorer.go | ||
restorer_test.go | ||
restorer_unix.go | ||
restorer_unix_test.go | ||
restorer_windows.go | ||
restorer_windows_test.go | ||
sparsewrite.go | ||
truncate_other.go | ||
truncate_windows.go |