Timeline for Efficient way to list only files (but not directories) in subdirectories
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 7, 2019 at 12:43 | history | edited | Alexey Popkov | CC BY-SA 4.0 |
edited body
|
Sep 7, 2019 at 12:33 | history | edited | Alexey Popkov | CC BY-SA 4.0 |
fixed mistake
|
Sep 7, 2019 at 12:10 | history | edited | Alexey Popkov | CC BY-SA 4.0 |
added 227 characters in body
|
Sep 7, 2019 at 11:52 | history | edited | Alexey Popkov | CC BY-SA 4.0 |
added 782 characters in body
|
Aug 25, 2019 at 18:46 | comment | added | Alexey Popkov |
@C.E. It seems Unix has its own dir utility which has functional similar to cmd 's dir , but more straightforward syntax.
|
|
Aug 25, 2019 at 18:33 | comment | added | Alexey Popkov |
@C.E. I get 44681 filenames with version 12.0 on Windows 7 x64.
|
|
Aug 25, 2019 at 18:26 | comment | added | C. E.♦ |
Similar function for Unix: listFiles[root_] := ImportString[RunProcess[{"find", root, "-type", "f"}, "StandardOutput"], "Lines"] It finds 42718 files though, whereas the other methods find 42986. By the way, how many files do you have in your $InstallationDirectory ? I ask because for me, e.g. l1 and l2 can be computed in ~1 second. l4 in 12 seconds. The bash version executes in 0.58 seconds.
|
|
Aug 25, 2019 at 16:45 | history | edited | Alexey Popkov | CC BY-SA 4.0 |
added 40 characters in body
|
Aug 25, 2019 at 16:24 | history | edited | Alexey Popkov | CC BY-SA 4.0 |
added 259 characters in body
|
Aug 25, 2019 at 14:12 | history | answered | Alexey Popkov | CC BY-SA 4.0 |