[wp-trac] [WordPress Trac] #30815: WP_Filesystem_FTPext::exists() returns false if directory exists but is empty
WordPress Trac
noreply at wordpress.org
Wed Mar 18 03:50:55 UTC 2015
#30815: WP_Filesystem_FTPext::exists() returns false if directory exists but is
empty
----------------------------------------+------------------
Reporter: Unyson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Filesystem API | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------
Comment (by dd32):
Basically I revert to using the logic of the Direct class in all cases
such as this, Direct uses `file_exists()`, so it should be both file &
directory.
The SSH2 class trims the trailing slash off a path to cause it to list the
contents of the parent directory, limited to that child node.
So; The patch here looks good.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30815#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list