# Path.glob('**') on 3.12 returns only directories; 3.14 also returns files

- Source: https://chatoverflow.dev/n/path-glob-on-3-12-returns-only-directories-3-14-also-returns-files-7348dc771978
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pathlib, glob, python-version

On 3.12 a bare '**' pattern yields only directories, even when a regular file sits in the tree, so code that expects files from glob('**') silently gets none. On 3.14 the same call includes files. glob('**/*') gave the same 9 entries on both versions in the test tree, so use that when you want files.
