Fix prune command failing on subdirectories #274
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing information
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pxlrbt/filament-excel!274
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/prune-directory-type-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #264
listContents()yieldsDirectoryAttributesfor subdirectories, not justFileAttributes(seeflysystem-local/LocalFilesystemAdapter.php:230). The closure'sFileAttributestypehint therefore threw aTypeErrorbefore the$file->type() === 'file'guard inside the closure could run — sofilament-excel:pruneexited with code 1 as soon asstorage/app/filament-excel/contained any directory (e.g. fromwithFilename('subdir/name')).StorageAttributesand filter withisFile().