Vipin
Vipin

Reputation: 398

show files at a URL

I have 2 application deployed on my server and first application is suppose to list the files in a folder in another application.

But the problem is these two application may be deployed on 2 different physical servers. So is it possible to fetch the files from the URL

i.e is there a way something like

List<file> getFileList(<URL>/folderName) ;

Upvotes: 1

Views: 809

Answers (2)

Vladislav Rastrusny
Vladislav Rastrusny

Reputation: 30013

As @BalusC said, by HTTP it is not possible... unless you write a special script of your own returning a list of files in the folder you need (with permissions check, of course).

Upvotes: 0

BalusC
BalusC

Reputation: 1109780

That's not possible by HTTP. Use FTP or let the server platform mount it on the local disk file system.

Upvotes: 1

Related Questions