mirror of
https://github.com/restic/restic.git
synced 2025-10-10 13:59:59 +00:00
fs: remove Stat from FS interface
This commit is contained in:
@@ -34,12 +34,6 @@ func (fs Local) OpenFile(name string, flag int) (File, error) {
|
||||
return f, nil
|
||||
}
|
||||
|
||||
// Stat returns a FileInfo describing the named file. If there is an error, it
|
||||
// will be of type *PathError.
|
||||
func (fs Local) Stat(name string) (os.FileInfo, error) {
|
||||
return os.Stat(fixpath(name))
|
||||
}
|
||||
|
||||
// Lstat returns the FileInfo structure describing the named file.
|
||||
// If the file is a symbolic link, the returned FileInfo
|
||||
// describes the symbolic link. Lstat makes no attempt to follow the link.
|
||||
|
Reference in New Issue
Block a user