... | ... | @@ -14,8 +14,8 @@ The Pipe&Filter architecture is well known for its capability to divide work int |
|
|
As - for example - a car manufacturer which divides the assembly of a new car into different steps to increase efficiency and throughput, we will also follow this guideline in our work with TeeTime.
|
|
|
As a first step, we need to find out which steps are run by a "File Counter". // Can be expressed in a better way
|
|
|
|
|
|
Long story short, this are the individual steps which are executed:
|
|
|
- Read directories recursively
|
|
|
- Extract files
|
|
|
- Count files
|
|
|
- Print or save number |
|
|
\ No newline at end of file |
|
|
|
|
|
At first, we look recursively for all nested directories and pass each one of them to the next step.
|
|
|
The second step is to read the given directory and pass all containing files one by one to the next processing step.
|
|
|
We count all files by incrementing a counter upon each sent file.
|
|
|
The last stage will save or print the number. |