开发者

show files at a URL

开发者 https://www.devze.com 2023-02-14 16:22 出处:网络
I have 2 application deployed on my server and first application is suppose to list the files in a folder in another application开发者_Python百科.

I have 2 application deployed on my server and first application is suppose to list the files in a folder in another application开发者_Python百科.

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) ;


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


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号