]> git.lizzy.rs Git - rust.git/commit
Stabilize Windows `FileTypeExt` with `is_symlink_dir` and `is_symlink_file`
authorJosh Triplett <josh@joshtriplett.org>
Mon, 27 Jun 2022 16:41:12 +0000 (09:41 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Mon, 27 Jun 2022 16:42:38 +0000 (09:42 -0700)
commite374c911af9a723e513d947244e5e5b0c847f006
treef9dd10d9c54742bfb5ace4f92a1372cb138fb05e
parentbd2e51a338e36372b200a22f3e0e22189a1063e6
Stabilize Windows `FileTypeExt` with `is_symlink_dir` and `is_symlink_file`

These calls allow detecting whether a symlink is a file or a directory,
a distinction Windows maintains, and one important to software that
wants to do further operations on the symlink (e.g. removing it).
library/std/src/os/windows/fs.rs