I am trying to find a function for FTP server that will resemble is_dir in PHP. It looks like ftp_nlist may do the job but it looks clumsy to me. Maybe there is another way to the result?
I don’t want to use ftp_nlist.
if ((ftp_nlist($conn_id, $dir) !== false) {
echo “It is directory”;
}
else {
echo “It is NOT directory”;
}