[wp-trac] [WordPress Trac] #30921: "Cannot Remove Old Plugin" Obliterates files!

WordPress Trac noreply at wordpress.org
Thu Feb 26 00:10:28 UTC 2015


#30921: "Cannot Remove Old Plugin" Obliterates files!
-----------------------------+------------------------------
 Reporter:  johnstonphilip   |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  4.1
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by valendesigns):

 Replying to [comment:3 dd32]:
 > However, I've just realised that FTP doesn't really allow us to verify
 if a folder is writable/deletable without actually trying. It's made
 harder by the fact that FTP exposes permissions differently than the
 underlying filesystem, so it's a potentially difficult situation. We could
 certainly perform it for requests using the `direct` transport (direct
 file operations) though for sure.

 In FTP mode is there an equivalent action, in terms of permissions, that
 could be performed on the directory to see if it's writable before trying
 to delete it? For example, moving it or something along those line. Or
 possibly, we could move the files into a temp directory until we know if
 the directory can be deleted and either delete on success or move back on
 failure. This way the files are not lost and craziness never ensues. ;)

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


More information about the wp-trac mailing list