Skip to content

Commit

Permalink
Remove comment on SetFileInformationByHandle (#236)
Browse files Browse the repository at this point in the history
The function cannot actually be used to move a file and set its
attributes in one operation.
  • Loading branch information
LegionMammal978 committed Apr 24, 2023
1 parent 141c773 commit f474e6a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/file/imp/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ pub fn keep(path: &Path) -> io::Result<()> {
}

pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<()> {
// TODO: We should probably do this in one-shot using SetFileInformationByHandle but the API is
// really painful.

unsafe {
let old_path_w = to_utf16(old_path);
let new_path_w = to_utf16(new_path);
Expand Down

0 comments on commit f474e6a

Please sign in to comment.