Skip to content

Commit 012d830

Browse files
committed
Final QA edits on README
1 parent cb743a1 commit 012d830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python-get-all-files-in-directory/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# How to Get a List of All Files in a Directory With Python
1+
# How to Get a List of All Files and Folders in a Directory With Python
22

33
The code samples and supporting materials for the [corresponding tutorial](https://realpython.com/get-all-files-in-directory-python/) on Real Python.
44

5-
You'll find a directort to test your listing operations on, `Desktop`, which has few files, and a few subdirectories with a few files.
5+
You'll find a directory to test your listing operations on, `Desktop`, which contains a few files, and a few subdirectories with a few files.
66

7-
You'll also find a script called `create_large_dir.py` which will create the `large_dir` example shown in the tutorial. You can try tweaking the numbers there to bulk up the number of files, or create custom directory trees.
7+
You'll also find a script called [`create_large_dir.py`](create_large_dir.py) which will create the `large_dir/` example shown in the tutorial. You can try tweaking the numbers there to bulk up the number of files or create custom directory trees.
88

99
You can use these directories to try out the different methods of listing.
1010

@@ -14,7 +14,7 @@ The examples covered in the tutorial are in `examples.py`, with the recursive `.
1414

1515
You'll also find a `bonus` folder. Here you'll find scripts that time a whole range of methods from the `pathlib` and `os` modules when it comes to producing a list of files.
1616

17-
The main testing files are `testing_flat_dir.py` and `testing_nested_dir.py`/.You can tweak the constants at the beginning of these files to change the number of files and/or folders being tested. Along with the number of times the operations are tested. Be warned, though, that bumping up the numbers can cause the tests to take a long time.
17+
The main testing files are `testing_flat_dir.py` and `testing_nested_dir.py`/. You can tweak the constants at the beginning of these files to change the number of files and/or folders being tested. Along with the number of times the operations are tested. Be warned, though, that bumping up the numbers can cause the tests to take a long time.
1818

1919
These scripts use the `make_files.py` module to generate large flat and nested directories just for the test.
2020

0 commit comments

Comments
 (0)