os.path.exists and os.path.stat not working on FSLogix Redirected Containers from 3.12 onward
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the os.path.exists and os.path.stat behavior on Windows with an FSLogix Redirected Container, then inspect the change from gh-102765 and its use of GetFileInformationByName. Done means the reported path operations return the expected result on Python 3.12 and later without regressing other Windows filesystem behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100