Get a whole FTP directory listings recursively in one call if possible to reduce time using possibly Apache Commons API. Right now I have to call it multiple times to get all the directory listings is there any solutions for that.
Get a whole FTP directory listings recursively in one call possible to reduce time
542 Views Asked by dsknjksad At
1
There are 1 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in FTP
- FTP ls works fine, but LIST not working. vsFTP server
- How can i pass the secrets to the ngrok.yml file in the container and in the FTP container to an environment?
- ftp download for small datasets works but for more than 300KB not
- Transfer a file from a local machine to an Ubuntu virtual machine using the FTP protocol through a Java program
- ftplib error encoding. latin-1 utf-8: utf-8' codec can't decode byte 0xf1 in position 132: invalid continuation byte
- Using Xftp to connect ftpzilla server on windows, can't open the directory
- Using python to connect ftp with ftp proxy
- Can I adjust the timeout on the python twistd server via a command line option?
- How to setup cloudflare to allow github actions to complete
- FileNotFoundError when using pd.read_parquet to read file in FTP server
- FTP connect with Windows powershell after setting the firewall port and passive-mode checked
- The remote server returned an error: (425) Can't open data connection when FTPS enabled
- Access denied when connecting to Azure App Service using FTP Credentials in WinSCP
- FTP TLS session reuse in PHP
- Multi hop proxy with pycharm (or filezilla)
Related Questions in APACHE-COMMONS-NET
- Design Pattern for Dependency-Injected TelnetInputListener implementation?
- Implicit FTPS with Alpakka FTP
- Why is KeyManagerUtils.loadStore private?
- Android downloaded zip file every time damaged
- FTPSClient from Apache Commons Net 3.9.0 not working
- Apache commons net ftp unable to stop download when hitting back button
- FTP LIST file error: 425 Unable to build data connection: TLS session of data connection not resumed
- Downloading many FTP files in parallel using Apache FTPClient and Java streams fails with "socket write error" or "Could not parse response code"
- Spring integration FTPs Unable to list files
- apache FTPS with proxy get timeout when transferring file
- Why can I retrieve file names but not file objects from the FTP server?
- Get a whole FTP directory listings recursively in one call possible to reduce time
- Apache Commons Net FTP does not throw any exception on wrong credentials
- FTPSClient fails to connect with MalformedServerReplyException
- FTPS data connection with TLS/SSL via proxy fails with log entry "Replacing PASV mode reply address <PROXY_IP> with <FTPS_IP>"
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There's no standard way to request recursive directory listing from remote server in "one call".
So even if the Apache Common Net (or any other library) had a single call API to request recursive directory listing, it would internally have to do the same recursive algorithm, as for example here:
Retrieve all sub folders contents using Java Apache Commons Net library
Some FTP servers support a non-standard request for recursive listing.
For example ProFTPD has
-Rswitch toLISTcommand (and similar) to list the directories recursively.In Apache Commons Net you can inject that switch by simply prepending it to the path:
But you can use that only if you know for sure that you are connected to ProFTPD.
I do not know of any other FTP server with similar functionality. With other FTP servers you can optimize the listing by using multiple parallel connections.
If you have a choice of protocols, consider using WebDAV, as that's the only file transfer protocol I know of that supports recursive directory listing.
Similar question:
How to list the sub directories in a Windows FTP server?