ArxOne / FTP

Simple FTP client
MIT License
37 stars 15 forks source link

FileZilla and STAT command #31

Closed darrell-aevum closed 7 years ago

darrell-aevum commented 7 years ago

Picrap, I noticed the command for GetEntry is using the "STAT" command. I am unable to use GetEntry with FileZilla because it does not know what the STAT command is. Also, if I use LIST on a directory that does not exist, it throws an error.

Basically I'm trying to check if a directory exists before renaming a file/folder to that directory.

Any other options than GetEntry or LIST?

Thanks, Darrell

picrap commented 7 years ago

Hi,

Why don't you rely on the exception? If it is thrown, this means that the directory does not exist, right? Or you could check if the MLSD works.

picrap commented 7 years ago

Any news here?

picrap commented 7 years ago

💀 ? 🔫 !