+
95
-

回答

<?php
$sftp = @ssh2_sftp($conn);
if(is_dir("ssh2.sftp://{$sftp}/home/data")){
echo "目录";
}

网友回复

我知道答案,我要回答