mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
committed by
Johannes Altmanninger
parent
43513d3fca
commit
44f9363e39
@@ -59,9 +59,9 @@ pub fn waccess(file_name: &wstr, mode: libc::c_int) -> libc::c_int {
|
||||
}
|
||||
|
||||
/// Wide character version of unlink().
|
||||
pub fn wunlink(file_name: &wstr) -> libc::c_int {
|
||||
let tmp = wcs2zstring(file_name);
|
||||
unsafe { libc::unlink(tmp.as_ptr()) }
|
||||
pub fn wunlink(file_name: &wstr) -> io::Result<()> {
|
||||
let tmp = wcs2osstring(file_name);
|
||||
fs::remove_file(tmp)
|
||||
}
|
||||
|
||||
pub fn wperror(s: &wstr) {
|
||||
|
||||
Reference in New Issue
Block a user