[wp-trac] [WordPress Trac] #33058: $wp_filesystem->exists('') returns a wrong answer (when FS_METHOD='ftpext').

WordPress Trac noreply at wordpress.org
Mon Mar 13 23:26:46 UTC 2023


#33058: $wp_filesystem->exists('') returns a wrong answer (when
FS_METHOD='ftpext').
-----------------------------------------------+---------------------
 Reporter:  Zdrobau                            |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  6.3
Component:  Filesystem API                     |     Version:  2.5
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch has-testing-info commit  |     Focuses:
-----------------------------------------------+---------------------

Comment (by azaozz):

 Replying to [comment:16 costdev]:
 > this change is a simple guard and doesn't employ any FTP functionality

 Wondering if any of these methods support the
 [https://en.wikipedia.org/wiki/List_of_FTP_commands FTP command] `CWD`? If
 yes, seems an empty `exists()` would be expected to return true as it will
 be checking the current working directory?

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


More information about the wp-trac mailing list