[wp-trac] [WordPress Trac] #36710: Symlinked directories should not be deleted recursively

WordPress Trac noreply at wordpress.org
Fri Jun 14 00:35:03 UTC 2019


#36710: Symlinked directories should not be deleted recursively
------------------------------------+-----------------------------
 Reporter:  andy                    |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Filesystem API          |     Version:
 Severity:  major                   |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  administration
------------------------------------+-----------------------------

Comment (by pbiron):

 On Windows, trying to `unlink()` a symlink that points to a directory
 fails with "Permission denied"...you have to use `rmdir()`.

 [[https://core.trac.wordpress.org/attachment/ticket/36710/36710.3.diff|36710.3.diff]]
 adds that Windows-specific conditional behavior.

 See
 [[https://bugs.php.net/bug.php?id=52176|https://bugs.php.net/bug.php?id=52176]].

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


More information about the wp-trac mailing list