mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-17 20:56:41 +02:00
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
92571fc113
commit
c6bbdfa1df
1 changed files with 18 additions and 0 deletions
18
glob/README.md
Normal file
18
glob/README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# 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](mailto:davrot@uni-bremen.de)
|
||||
|
||||
## Creating test files
|
||||
|
||||
```python
|
||||
from pathlib import Path
|
||||
|
||||
Path("Testfile_001.mat").touch()
|
||||
Path("Testfile_002.mat").touch()
|
||||
Path("Testfile_010.mat").touch()
|
||||
Path("Testfile_003.mat").touch()
|
||||
```
|
||||
|
Loading…
Add table
Reference in a new issue