[wp-trac] [WordPress Trac] #53318: FTPext method exists() returns always false for files!
WordPress Trac
noreply at wordpress.org
Mon Aug 8 12:40:07 UTC 2022
#53318: FTPext method exists() returns always false for files!
--------------------------------------+------------------------
Reporter: arl1nd | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Filesystem API | Version: 5.7.2
Severity: normal | Resolution: duplicate
Keywords: needs-patch dev-feedback | Focuses: docs
--------------------------------------+------------------------
Comment (by audrasjb):
In [changeset:"53860" 53860]:
{{{
#!CommitTicketReference repository="" revision="53860"
Filesystem: Rewrite FTP/FTP Sockets `exists()` methods to implement a more
stable check.
WordPress FTP file checking was previously based upon `ftp_nlist()`. This
function can be problematic at scale with a directory containing a large
number of files. The same issue occurred using it with ftpsockets.
This changeset rewrites the FTP `exists()` functions to utilize a more
efficient and stable check.
Props giox069, desrosj, mkox, afragen, costdev, pbiron, peterwilsoncc.
Fixes #51170.
See #53318, #39781.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53318#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list