Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Pascal-Smit-OGD opened this issue May 13, 2025 · 1 comment
Labels
OS-windows stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@Pascal-Smit-OGD
Copy link

Pascal-Smit-OGD commented May 13, 2025

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

@Pascal-Smit-OGD Pascal-Smit-OGD added the type-bug An unexpected behavior, bug, or error label May 13, 2025
@picnixz picnixz added stdlib Python modules in the Lib dir OS-windows and removed stdlib Python modules in the Lib dir labels May 23, 2025
@duaneg
Copy link
Contributor

duaneg commented Jun 15, 2025

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
Labels
OS-windows stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants