[wp-trac] [WordPress Trac] #33058: $wp_filesystem->exists('') returns a wrong answer (when FS_METHOD='ftpext').
WordPress Trac
noreply at wordpress.org
Tue Jul 21 16:05:44 UTC 2015
#33058: $wp_filesystem->exists('') returns a wrong answer (when
FS_METHOD='ftpext').
----------------------------+------------------------------
Reporter: Zdrobau | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by Zdrobau):
I want to use the method WP_Upgrader::install_package() with
{{{
$args['clear_destination'] = true
}}}
In it exists the following code that causes problems:
{{{
$removed = true;
if ( $wp_filesystem->exists( $remote_destination ) ) {
$removed = $wp_filesystem->delete( $remote_destination, true );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33058#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list