How to get directories,subdirectories, files creation date & time from FTP remote Server in C++ ?
I want to create a FTP client in C++
How to get directories,subdirectories, files creation date & time from FTP remote Server in
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CIt doesn’t matter the language, Once you are connected to the ftp server, just send the commands following the FTP protocol..
You should check the File Transfer Protocol RFC
That is if you want to do an ftp client from scratch. You can use libraries for doing so.
The commands you need, could be
LISTcommand. But It is crappy. A new RFC updates the first one and add two new commands that do exactly what you want. Those commands areMLSTandMLSDand you can see the RFC 3659 here. You should take care, I think not all ftp servers accept these commands.One think you can do, is use a sniffer like Wireshark to sniff and get info about what commands are used by FTP clients. (BTW: Wireshark filters should be: ftp || ftp-data )
Linux FTP Command uses
LISTfor its dir command.