Fix WP_Filesystem_FTPext->exists(), props dd32, fixes #10060
git-svn-id: http://svn.automattic.com/wordpress/trunk@11821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd03493d94
commit
73de56d05e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue