archiver: use ExtendedStat from FS interface

With this change, NodeFromFileInfo is the last function that bypasses
the FS interface in the archiver.
This commit is contained in:
Michael Eischer
2024-08-27 14:35:40 +02:00
parent e79dca644e
commit 7bb92dc7bd
5 changed files with 20 additions and 7 deletions

View File

@@ -52,6 +52,11 @@ func (fs Local) DeviceID(fi os.FileInfo) (id uint64, err error) {
return deviceID(fi)
}
// ExtendedStat converts the give FileInfo into ExtendedFileInfo.
func (fs Local) ExtendedStat(fi os.FileInfo) ExtendedFileInfo {
return ExtendedStat(fi)
}
// Join joins any number of path elements into a single path, adding a
// Separator if necessary. Join calls Clean on the result; in particular, all
// empty strings are ignored. On Windows, the result is a UNC path if and only