Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1070 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

io.Path: remove() POSIX implementation is wrong

Reported by: e-t172 Assigned to: larsivi
Priority: major Milestone: 0.99.7
Component: IO Version: trunk
Keywords: Cc:

Description

On POSIX, io.Path.remove() is wrong.

This function should not check isFolder(), for two reasons:

- It is useless: C remove() does this itself (see remove(3)). - It causes problems: you can't use remove() on a symbolic link to a directory.

Attachments

tango.remove.patch (0.8 kB) - added by e-t172 on 04/26/08 12:39:33.
Correct implementation of remove()

Change History

04/26/08 12:39:33 changed by e-t172

  • attachment tango.remove.patch added.

Correct implementation of remove()

05/11/08 17:42:37 changed by larsivi

  • owner changed from kris to larsivi.
  • status changed from new to assigned.
  • milestone set to 0.99.7.

05/11/08 17:45:12 changed by larsivi

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [3502]) remove already do rmdir, thanks e-t172, closes #1070