internal: ReadDir wrapper return fs.DirEntry
test / test (push) Successful in 25s Details

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra Umiker 2024-10-25 14:56:29 +09:00
parent 8fa791a2f8
commit 3bfe8dbf5d
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ type System interface {
// Lookup provides [user.Lookup]. // Lookup provides [user.Lookup].
Lookup(username string) (*user.User, error) Lookup(username string) (*user.User, error)
// ReadDir provides [os.ReadDir]. // ReadDir provides [os.ReadDir].
ReadDir(name string) ([]os.DirEntry, error) ReadDir(name string) ([]fs.DirEntry, error)
// Stat provides [os.Stat]. // Stat provides [os.Stat].
Stat(name string) (fs.FileInfo, error) Stat(name string) (fs.FileInfo, error)
// Open provides [os.Open] // Open provides [os.Open]