directory
directory copied to clipboard
Platform-independent library for basic file system operations
With the changes in 14f5851fd55b0a1a546b4cc8f9459bebeac0b71c we could try refactoring some of the other functionality to also use similar `*at` OS APIs. ```diff -getDirectoryContentsInternal (OsString path) = +getDirectoryContentsInternal path = -...
There is a TODO in System/Directory/OsPath.hs: ```hs -- TODO: AFPP doesn't support openBinaryTempFile yet, ```
On Windows, `findExecutable ""` would throw `*** Exception: searchPath: invalid argument (The parameter is incorrect.)`. However, on Linux it simply returns `Nothing`. I believe this is a bug and we...
Using cabal with `--allow-newer` will break the build as of directory 1.3.8.2. The problem is that the `os-string` flag introduced in #165 defaults to the older way, so it will...
Currently only `MOVEFILE_REPLACE_EXISTING` is enabled but I don't think there would be a downside to enable the mentioned flag. The [documentation](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-movefileexa) for that one says: > If the file is...
Closes #189
``` ghci> findExecutable "\\" Just "C:\\" ``` I'm not sure what's going on there, but that's certainly not an executable.
``` ghci> findExecutable "ghc-9.10.1" Nothing ghci> findExecutable "ghc-9.10.1.exe" Just "C:\\ghcup\\bin\\ghc-9.10.1.exe" ``` This is because "ghc-9.10.1" is considered to contain a file extension. The documentation on `SearchPathW` states under `lpExtension`: >...