aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/treefs_stat.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-04-02 06:23:30 +0000
committerGravatar Runxi Yu2026-04-02 06:28:39 +0000
commita041d523de389b65b98a5373a8034041db2a8d83 (patch)
tree7b423dc735f463be616045f2c3c2095a7737aca7 /object/fetch/treefs_stat.go
parentresearch: Add dynamic pack resources (diff)
*: Remove
Diffstat (limited to 'object/fetch/treefs_stat.go')
-rw-r--r--object/fetch/treefs_stat.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/object/fetch/treefs_stat.go b/object/fetch/treefs_stat.go
deleted file mode 100644
index 7d7a6418..00000000
--- a/object/fetch/treefs_stat.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package fetch
-
-import "io/fs"
-
-// Stat returns synthetic file metadata for name.
-//
-// TreeFS metadata reflects Git tree entry mode and blob size where applicable.
-// It does not represent filesystem stat metadata: ModTime is zero, ownership is
-// unavailable, and Sys returns the underlying tree.TreeEntry when one exists.
-func (treeFS *TreeFS) Stat(name string) (fs.FileInfo, error) {
- entry, err := treeFS.resolvePath(treeFSOpStat, name)
- if err != nil {
- return nil, err
- }
-
- info, err := treeFS.statEntry(entry)
- if err != nil {
- return nil, treeFSPathError(treeFSOpStat, name, err)
- }
-
- return info, nil
-}