mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix symlink size calculation (#3046)
This commit is contained in:
@@ -22,6 +22,7 @@ func (o *fsOpener) Open() (io.ReadCloser, error) {
|
||||
|
||||
// FS represents a file system.
|
||||
type FS interface {
|
||||
Stat(name string) (fs.FileInfo, error)
|
||||
Lstat(name string) (fs.FileInfo, error)
|
||||
Open(name string) (fs.ReadDirFile, error)
|
||||
OpenZip(name string) (*ZipFS, error)
|
||||
@@ -30,6 +31,10 @@ type FS interface {
|
||||
// OsFS is a file system backed by the OS.
|
||||
type OsFS struct{}
|
||||
|
||||
func (f *OsFS) Stat(name string) (fs.FileInfo, error) {
|
||||
return os.Stat(name)
|
||||
}
|
||||
|
||||
func (f *OsFS) Lstat(name string) (fs.FileInfo, error) {
|
||||
return os.Lstat(name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user