File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ pub use funcs::bsd43::{shutdown};
271
271
#[ cfg( windows) ] pub use funcs:: extra:: kernel32:: { GetOverlappedResult , ConnectNamedPipe } ;
272
272
#[ cfg( windows) ] pub use funcs:: extra:: kernel32:: { DisconnectNamedPipe , OpenProcess } ;
273
273
#[ cfg( windows) ] pub use funcs:: extra:: kernel32:: { MoveFileExW , VirtualProtect } ;
274
+ #[ cfg( windows) ] pub use funcs:: extra:: kernel32:: { RemoveDirectoryW } ;
274
275
#[ cfg( windows) ] pub use funcs:: extra:: msvcrt:: { get_osfhandle, open_osfhandle} ;
275
276
#[ cfg( windows) ] pub use funcs:: extra:: winsock:: { ioctlsocket} ;
276
277
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ pub fn chmod(p: &Path, mode: uint) -> IoResult<()> {
342
342
343
343
pub fn rmdir ( p : & Path ) -> IoResult < ( ) > {
344
344
let p = try!( to_utf16 ( p) ) ;
345
- mkerr_libc ( unsafe { libc:: wrmdir ( p. as_ptr ( ) ) } )
345
+ super :: mkerr_winbool ( unsafe { libc:: RemoveDirectoryW ( p. as_ptr ( ) ) } )
346
346
}
347
347
348
348
pub fn chown ( _p : & Path , _uid : int , _gid : int ) -> IoResult < ( ) > {
You can’t perform that action at this time.
0 commit comments