Skip to content

Consider a variant of deleteFile that on Windows retries x times before giving up #96

@Mistuke

Description

@Mistuke

As discussed in haskell/hsc2hs#25 there are various services on Windows that can keep a file open for a fraction of time, such as indexer or AV services. That means that deleteFile may fail temporarily.

It's a reasonably common idiom, SQLlite for instance does so as well https://www.sqlite.org/src/info/89f1848d7f and we do it in the GHC testsuite and now hsc2hs to avoid a race condition with the file deletion.

Would it be perhaps handy to have such a function in Directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: (9) out of scopeThe feature request is out of scope of this project or not feasible to support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions