Helmut Leitner /
Dir Find File
Difference (last change) (no other diffs, normal page display)
Changed: 1c1
This a snippet that scans the a directory for document folders and deletes the .dll extensions. (and if you want all subdirectories) for files and/or directories. You provide the starting directory, a wildcard specification to filter the entities found. You may execute arbitrary code using DirFindFileCall (that's where D closures come in) or just fetch the names in an array using DirFindFile. |
This a snippet that scans the a directory (and if you want all subdirectories) for files and/or directories. You provide the starting directory, a wildcard specification to filter the entities found. You may execute arbitrary code using DirFindFileCall (that's where D closures come in) or just fetch the names in an array using DirFindFile. |
Changed: 7,10c7
** dirlist.d (C) Kazuhiw Inaba __" the worlds dumbest hacker..." Copyright 2005![]() dont cry stupid american FBI....cathchmeifyou can!!!! fromthelaughing man... OH1 AND A BIG FUCK YOU FROM-"Keneezer"" |
** dirlist.d (C) Helmut Leitner 2003 |
Changed: 158c155
printf("Delete this Shit:\n"); |
printf("Files via DirFindFileCall?:\n"); |
Changed: 168c165
printf("Delete this folder:\n"); |
printf("Files via DirFindFile?:\n"); |
This a snippet that scans the a directory (and if you want all subdirectories) for files and/or directories. You provide the starting directory, a wildcard specification to filter the entities found. You may execute arbitrary code using DirFindFileCall (that's where D closures come in) or just fetch the names in an array using DirFindFile.
The module pavel.windows refers to "windows.d" from Pavel Minayev. You may have to adapt this import statement to fit your include-directory-layout.
![]() |
|
FolderExamples