Timeline for Recursively traverse directory tree and print all files
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 10, 2020 at 13:24 | history | edited | CommunityBot |
Commonmark migration
|
|
Jul 15, 2016 at 12:45 | answer | added | svick | timeline score: 2 | |
Jul 14, 2016 at 19:36 | history | edited | wojciech_rak | CC BY-SA 3.0 |
added 356 characters in body
|
Jul 14, 2016 at 19:20 | history | edited | wojciech_rak | CC BY-SA 3.0 |
deleted 131 characters in body
|
Jul 14, 2016 at 19:19 | comment | added | user110704 | Let us continue this discussion in chat. | |
Jul 14, 2016 at 19:19 | comment | added | wojciech_rak | You are correct, I don't know why it printed only filenames when I first evaluated it. Current version is MUCH shorter now. | |
Jul 14, 2016 at 19:11 | comment | added | user110704 |
really? Directory.EnumerateFiles returns the fullname, if I remember correctly
|
|
Jul 14, 2016 at 19:10 | history | edited | wojciech_rak | CC BY-SA 3.0 |
added 410 characters in body
|
Jul 14, 2016 at 19:08 | comment | added | wojciech_rak |
One thing though. Static method Directory.EnumerateFiles returns IEnumerable<string> which has only filename. I need full paths to file. Method EnumerateFiles on DirectoryInfo object, returns IEnumerable<FileInfo> , which also contains FullName (full path)
|
|
Jul 14, 2016 at 19:06 | comment | added | user110704 |
about Directory.EnumerateFiles you are right, just a typo :(
|
|
Jul 14, 2016 at 19:03 | comment | added | user110704 |
you mean List from Collections.Generic ?
|
|
Jul 14, 2016 at 19:02 | comment | added | wojciech_rak |
Just a habit from C#, I think. Even better, this could be done with Directory.EnumerateFiles
|
|
Jul 14, 2016 at 19:01 | history | edited | 200_success |
edited tags
|
|
Jul 14, 2016 at 18:59 | comment | added | user110704 |
okay, this is not so important. Why you want use List instead of Array ?
|
|
Jul 14, 2016 at 18:53 | comment | added | user110704 |
why not just Directory.EnumerateDirectories(path,"*",SearchOption.AllDirectories) ?
|
|
Jul 14, 2016 at 18:07 | review | First posts | |||
Jul 14, 2016 at 18:39 | |||||
Jul 14, 2016 at 18:07 | history | asked | wojciech_rak | CC BY-SA 3.0 |