I am trying to find a list of all zip files in a directory which is found by a path like:
https://abdc.defg.com/ijk/lmn/opq
If it was in a local filesystem, then the java.io.File's list() is does the job perfectly. But since this directory is on a remote machine in a foreign domain, java.io.File does not work. Even
File dir = new File("https://abdc.defg.com/ijk/lmn/opq");
does not work. I need a functionality just like java.io.File, and it would be best that I have to do this in Java's Standard APIs itself. Please suggest a way to do this like on a local file system:
File dir = new File("https://abdc.defg.com/ijk/lmn/opq");
File[] allFiles = dir.list();
抱歉,除了服务器为该功能提供某种服务外,无法使用http(s)进行此操作,例如,索引页列出目录中的所有文件。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.