directory icon indicating copy to clipboard operation
directory copied to clipboard

Platform-independent library for basic file system operations

Results 18 directory issues
Sort by recently updated
recently updated
newest added

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 = -...

type: b-cleanup

There is a TODO in System/Directory/OsPath.hs: ```hs -- TODO: AFPP doesn't support openBinaryTempFile yet, ```

type: b-discussion

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...

type: a-feature-request

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...

type: b-discussion

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...

``` 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`: >...