Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lfs/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ func (fsys *FileSystem) Stat(path string) (fs.FileInfo, error) {
//
// It return path relative to pattern for all found object.
func (fsys *FileSystem) ReadDir(path string) ([]fs.DirEntry, error) {
if err := stream.RequireValidDir("readdir", path); err != nil {
return nil, err
}
// Note: Disabled validation to be compatible with os.DirFS behavior
// if err := stream.RequireValidDir("readdir", path); err != nil {
// return nil, err
// }

if f, ok := fsys.fs.(fs.ReadDirFS); ok {
return f.ReadDir(trim(path))
Expand Down
Loading