Phil Ruffwind

Results 41 comments of Phil Ruffwind
trafficstars

Does not look like the TODO will be resolved any time soon, so moving that into #182. The rest of this issue is done so marking as closed.

I think it's possible to use `O_NOFOLLOW` internally for `removePathRecursive`, but this cannot be done for `listDirectory` as that would change its behavior on symlinks. It would necessary to have...

Any such implementation would need to support Windows. I think it is possible, given that Cygwin implements it, but it involves touching some rather exotic APIs like [`NtQueryDirectoryFile`](https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntquerydirectoryfile): https://github.com/Alexpux/Cygwin/blob/b39cd00f07e8df11c5446fb35da490ef85f12821/winsup/cygwin/fhandler_disk_file.cc#L2186 It's...

~~Rescoping this issue to POSIX.~~ ~~Windows is tracked in #110.~~ (Misread, please ignore.)

> https://hackage.haskell.org/package/unix-2.8.5.1/docs/System-Posix-Directory-Fd.html#v:unsafeOpenDirStreamFd Yep, that is no longer a blocker.

Would calling `lookupEnv "XDG_RUNTIME_DIR"` suffice? Is there any benefit from having this in `directory`?

Feel free to comment if there's still a concern. Thanks!

> code to do all of this checks. The program is not required to verify those. My read of the spec is that those are requirements that the program can...

> I guess this could be interesting to have a portable function returning $XDG_RUNTIME_DIR on unixes and something else on windows. The closest I can think of is `Win32.getTemporaryDirectory`. If...

Closing for reasons discussed in https://github.com/haskell/directory/issues/93#issuecomment-855482568.