aspose file tools*
The moose likes Linux / UNIX and the fly likes Find Num of files in FTP Server directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Find Num of files in FTP Server directory " Watch "Find Num of files in FTP Server directory " New topic
Author

Find Num of files in FTP Server directory

Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 210
Hello friends,
I have some problem in my project.
I need to connect to a ftp server [PARTICULAR DIRECTORY IN THAT SERVER].
i have to download all the files from that directory to a specified directory in my local machine.

The Problem, in order to check for status of the transfer. I need to know the file count [No of files in the FTP server].
If i know the count of files in the FTP server, then i can use that information for checking the number of files downloaded to my local directory .
This makes us confirm about the successful transfer of all files.
How To Find Num of files in FTP Server directory from UNIX Shell script.


2. After transfer i have to move the files in FTP server from one directory to another.
say in ftp server i have directory called source , from where i mget all the files
after transfer i have to move those files to archive directory present in the FTP server itself.

Can we write mv command there in ftp session..

3. I connect to FTP from unix box [ using .netrc information]
Please help me on this


SCJP 1.4 SCWCD 1.4 SCDJWS 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Find Num of files in FTP Server directory
 
Similar Threads
uploading files in JSP
FTP Issue
Open Source FTP Java client - Problems getting directory listing
Remote deployment to a unix server using FTP task in ANT
FTPClient : is not working