Skip to content

Discrepancy of fs::is_file vs. fs::file constructor #13328

Open
@Megamouse

Description

@Megamouse

On windows, fs::is_file returns false if a file path is tested that exists, but has different cases in the filename part.
But then, contrary to the prior check, creating the fs::file will fail with "Already exists".

Example:
! SYS: 'mypath/ROM10R1.BIN' -> fs::is_file = 1
! SYS: 'mypath/rom10r1.BIN' -> fs::is_file = 0
! SYS: Creating: 'mypath/rom10r1.BIN' -> "Already exists"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions