Skip to content

os.path.exists and os.path.stat not working on FSLogix Redirected Containers from 3.12 onward #133965

Open
@Pascal-Smit-OGD

Description

@Pascal-Smit-OGD

Bug report

Bug description:

import os
os.path.exists("C:/users/<username>/appdata")

Expected result: true.
Actual result: false.

This appears to be a regression introduced with gh-102765 when python moved towards using the new 'GetFileInformationByName' API function on Windows. This seems to have issues when the file/folder is on a profile managed by FSLogix.

The issue exists from Python 3.12.0 through to the latest public release (3.13.3).

Windows version: Windows Version 11 24H2 Multi-Session 26100.3775
FSLogix version: 3.25.202.4223

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions