pytutorial/glob
David Rotermund c6bbdfa1df
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
2023-12-02 02:07:01 +01:00
..
README.md Create README.md 2023-12-02 02:07:01 +01:00

glob -- Finding files in a directory

Goal

We want to deal with many files in a directory. What is an easy way to get the filename in a directory?

Questions to David Rotermund

Creating test files

from pathlib import Path

Path("Testfile_001.mat").touch()
Path("Testfile_002.mat").touch()
Path("Testfile_010.mat").touch()
Path("Testfile_003.mat").touch()