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

Changeset 3502

Show
Ignore:
Timestamp:
05/11/08 17:45:10 (2 months ago)
Author:
larsivi
Message:

remove already do rmdir, thanks e-t172, closes #1070

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/io/Path.d

    r3445 r3502  
    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