nushell/crates/nu-command/src/filesystem
Stefan Holderbach 1dd861b10f
Close find handle in ls windows unsafe code (#15314)
While inspecting the Windows specific code of `ls` for #15311 I stumbled
upon an unrelated issue in the alternate metadata gathering on Windows
(added by #5703).

The handle created by performing `FindFirstFileW` was never closed,
leading to a potential leak. Fixed by running `FindClose` as soon as the
operation succeeds.

https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findfirstfilew#remarks
2025-03-16 16:33:36 +01:00
..
cd.rs More precise ErrorKind::NotFound errors (#15149) 2025-02-22 11:42:44 -05:00
du.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
glob.rs Make glob stream (#14495) 2024-12-03 15:21:09 -06:00
ls.rs Close find handle in ls windows unsafe code (#15314) 2025-03-16 16:33:36 +01:00
mktemp.rs Refactor I/O Errors (#14927) 2025-01-28 16:03:31 -06:00
mod.rs Make utouch the new touch (#14721) 2025-01-02 06:26:46 -06:00
open.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
rm.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
save.rs bump the rust toolchain to 1.83.0 (#15148) 2025-02-20 16:34:09 -06:00
start.rs non-HTTP(s) URLs now works with start (#14370) 2025-01-23 17:14:31 -08:00
ucp.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
umkdir.rs Remove duplicate implementations of CallExt::rest (#14484) 2024-12-01 15:03:45 +01:00
umv.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
util.rs Remove duplicate implementations of CallExt::rest (#14484) 2024-12-01 15:03:45 +01:00
utouch.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
watch.rs Refactor I/O Errors (#14927) 2025-01-28 16:03:31 -06:00