Since is_dir can't be used on remote files, is there another way to accomplish this?
I don't think !!! The only way would be that a script on the remote server get executed and sends you info...