-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.x] Adds
isDirectoryEmpty()
and isDirectoryNotEmpty()
to Filesy…
…stem (#42559) * Adds `hasFiles` and `hasNoFiles` to Filesystem * Adds methods to facade. * Adds some additional test methods. * Better method name. * Fixes returning `true` if the path is a file. * Fixes empty directories without sub-directories. * Refactor as there is already an invalid dir exception. * formatting * fix test Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
6e87a42
commit 77ceefe
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters