Problem 1329. dir with recursive subdirectory search
Write a function that performs a recursive file search. The input and output format can be identical to the dir function. The result should be a struct with the filenames in the field "name".
The first solution is from Kelly Kearney (2006).
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 4 Sep 2020
The test suite needs to be updated, the number of files in each directory has changed. And this number should be evaluated dinamically. Use p files to hide your code if necessary.
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1640 Solvers
-
Back to basics 8 - Matrix Diagonals
947 Solvers
-
Back to basics 22 - Rotate a matrix
922 Solvers
-
Arrange vector in ascending order
798 Solvers
-
Elapsed time is -0.005204 seconds.
104 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!