Fix WP_Filesystem_FTPext->exists(), props dd32, fixes #10060

git-svn-id: https://develop.svn.wordpress.org/trunk@11821 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-08-15 08:31:06 +00:00
parent 39f2c3c6f0
commit 6e39ca2cb0

View File

@ -201,7 +201,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
}
function exists($file) {
$list = @ftp_rawlist($this->link, $file, false);
$list = @ftp_nlist($this->link, $file);
return !empty($list); //empty list = no file, so invert.
}
function is_file($file) {