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

Activity

added
stdlibPython modules in the Lib dir
and removed
stdlibPython modules in the Lib dir
on May 23, 2025
duaneg

duaneg commented on Jun 15, 2025

@duaneg
Contributor

Note that according to the corresponding WSL bug reports this is a bug (a regression) in FSLogix, see microsoft/WSL/issues/12899 and microsoft/WSL/issues/12939.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      os.path.exists and os.path.stat not working on FSLogix Redirected Containers from 3.12 onward · Issue #133965 · python/cpython

      Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

      Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant