Get a filename only list of files in a folder
Get a filename only list of files in a folder
To get a list of all files in a folder without path, you can use the following snippet:
$> find ../PATH/TO/FOLDER/TO/LIST/FILES/FROM -type f -printf "%f\n"
Example result:
5ed8d879-9203-4c26-afe4-4eee702ffcc7.ttf 25h-icons.woff 6ab1eb08-75f2-4c1a-9911-2752e3fd6ec9.woff ada6576a-cbce-4da0-994b-b4719f95ac06.eot dc80306d-6b3e-422b-85c3-bad65f5446d4.woff 1791f364-9061-4459-a14d-0b188cfd7193.woff2 fb7…
View On WordPress








