Skip to main content
Participant
October 16, 2014
Question

Get file list from URL/web directory

  • October 16, 2014
  • 1 reply
  • 651 views

Hey guys,

I have created a script for After Effects that can download multiple images from URLs that are given in an array. Now ideally what I want, is to get all the filenames of the files in a certain browsable web directory to be put in an array.

Unfortunately, I can't seem to figure out how to do this. Does someone have the knowledge here to help me out?

Thanks in advance,

Jorge

This topic has been closed for replies.

1 reply

Participating Frequently
October 20, 2014

This is more difficult to do than it seems. Since the files are on a remote web server, you need to find some way to get the server to divulge its local file structure, which is not something most servers will do. The absolute best way is to have control over the web server and run some server-side code (PHP, node.js, whatever) to generate the file list on the server side and then fetch it with your client/extension/script. Other than that it's almost impossible to get a 3rd party server to divulge its file structure as far as I know, mainly for security reasons. So the #1 question is: do you have control over the server/website that you're trying to fetch from or not?