Skip to content

Commit f474e6a

Browse files
Remove comment on SetFileInformationByHandle (#236)
The function cannot actually be used to move a file and set its attributes in one operation.
1 parent 141c773 commit f474e6a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/file/imp/windows.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ pub fn keep(path: &Path) -> io::Result<()> {
7575
}
7676

7777
pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<()> {
78-
// TODO: We should probably do this in one-shot using SetFileInformationByHandle but the API is
79-
// really painful.
80-
8178
unsafe {
8279
let old_path_w = to_utf16(old_path);
8380
let new_path_w = to_utf16(new_path);

0 commit comments

Comments
 (0)