mirror of
https://github.com/restic/restic.git
synced 2026-11-21 21:12:42 +00:00
fs: move NodeFromFileInfo into FS interface
This commit is contained in:
1 parent
c3b3120e10
commit
75711446e1
12 files changed
+69
-41
No files matched your search
@@ -3,6 +3,8 @@ package fs
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/restic/restic/internal/restic"
|
||||
)
|
||||
|
||||
// FS bundles all methods needed for a file system.
|
||||
@@ -12,6 +14,7 @@ type FS interface {
|
||||
Lstat(name string) (os.FileInfo, error)
|
||||
DeviceID(fi os.FileInfo) (deviceID uint64, err error)
|
||||
ExtendedStat(fi os.FileInfo) ExtendedFileInfo
|
||||
NodeFromFileInfo(path string, fi os.FileInfo, ignoreXattrListError bool) (*restic.Node, error)
|
||||
|
||||
Join(elem ...string) string
|
||||
Separator() string
|
||||
|
||||
Reference in new issue
Block a user