[wp-trac] [WordPress Trac] #28013: WP_Filesystem_FTPext::exists($filename) returns false when file exists on FTP Service ( IIS/6.0 Microsoft & Linux/vsftp )

WordPress Trac noreply at wordpress.org
Fri Jul 10 03:48:55 UTC 2015


#28013: WP_Filesystem_FTPext::exists($filename) returns false when file exists on
FTP Service ( IIS/6.0 Microsoft & Linux/vsftp )
-----------------------------+-----------------------------
 Reporter:  joostdekeijzer   |       Owner:  dd32
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  Future Release
Component:  Filesystem API   |     Version:  3.9.2
 Severity:  normal           |  Resolution:
 Keywords:  has-patch early  |     Focuses:  administration
-----------------------------+-----------------------------
Changes (by dd32):

 * keywords:  has-patch => has-patch early
 * owner:   => dd32
 * status:  new => accepted
 * milestone:  Awaiting Review => Future Release


Comment:

 I see no issue with switching to `ftp_rawlist` here, I guess it varies
 between servers as to which ones include `-a` by default. It makes sense
 that some would have hidden files disabled by default.
 I think there's also an argument to be made that we should use
 `wordpress.maintenance` instead or something similar.

 The actual change here would probably be just to `$list =
 @ftp_rawlist($this->link, "-a" . $file );` (lacking the `-l`).

 Marking as early for 4.4, as I don't want to change upgrade-related code
 during beta.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28013#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list