<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import os

# Get .txt files
for f_name in os.listdir(".."):
    if f_name.endswith(".txt"):
        print(f_name)


import os
import fnmatch

for file_name in os.listdir(".."):
    if fnmatch.fnmatch(file_name, "*.py"):
        print(file_name)


for filename in os.listdir("."):
    if fnmatch.fnmatch(filename, "data_*_backup.txt"):
        print(filename)


import glob

for name in glob.glob("*[0-9]*.txt"):
    print(name)


import glob

for file in glob.iglob("**/*.py", recursive=True):
    print(file)


from pathlib import Path

p = Path(".")
for name in p.glob("*.p*"):
    print(name)
</pre></body></html>