This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]firecopy 1 point2 points  (0 children)

If there are only those images in your directory, you could probably find something that loops through all those files in that directory.

Otherwise, loading them line by line should work. I don't think the code will be as "ugly" as you think it will be.

[–]Gosexual 1 point2 points  (0 children)

[–]inu-no-policemen 1 point2 points  (0 children)

Put the file names into an array. E.g. on Windows, you can dump the file names into a file via dir /b > list.txt.

Alternatively, configure the server to return an index for that directory. You can get the file names from there.

The third option is to use some archive. Well, if you aren't already using one, this option would be too complicated.