Skip to content

script recursively walks the “root_dir” and detects all the files under that dir contains “keywords”

Notifications You must be signed in to change notification settings

oooleks/Test_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Test_python

============== Script:

Functionality of script: script should recursively walk the directory and detect all the files under that dir contains “keywords” and count the number of files for that sub dir. All results should be saved in a key: value array.

App creates data files with keywords and then detects all the files under certain dir for containing “keywords” and counts the number of files.

To execute: • Place the script (Test.py) into the "C:\Test" folder; • Run it.

Parts of script:

  1. Creates random number of files (no more than 30) in the root_dir with random number of keywords: keyword1 = "^[a-zA-Z]+_TESTResult.* " keyword2 = "abc " keyword3 = "abcd ";

  2. Recursively walks the “root_dir” and detects all the files under that dir contains “keywords”.

About

script recursively walks the “root_dir” and detects all the files under that dir contains “keywords”

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages