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

Ticket #1070: tango.remove.patch

File tango.remove.patch, 0.8 kB (added by e-t172, 7 months ago)

Correct implementation of remove()

  • io/Path.d

    old new  
    752752 
    753753                static void remove (char[] name) 
    754754                { 
    755                         if (isFolder (name)) 
    756                            { 
    757                            if (posix.rmdir (name.ptr)) 
    758                                exception (name); 
    759                            } 
    760                         else 
    761                            if (tango.stdc.stdio.remove (name.ptr) == -1) 
    762                                exception (name); 
     755                        if (tango.stdc.stdio.remove (name.ptr) == -1) 
     756                            exception (name); 
    763757                } 
    764758 
    765759                /***************************************************************