Jump to content
Sign in to follow this  
rootx

Check if a folder exists

Recommended Posts

What is the best way to check if a folder exists on the remote FTP server?

I want to check before the function FTP_Dir Put Contents  if a folder exists.

Thanks. :bye:

Share this post


Link to post
Share on other sites

Hi.

try to cd into the folder. If it exists, you will receive a responde "250 <something>", if not "550 <something>"

Regards, Rudi.

Thank you, but I would like to know how others are doing to check if a directory exists or not before making the upoad, I have searched and read in the help but I have not found anything. Let me know if you're talking about dos commands to be executed in a batch, thank you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...