A. Create a Python program that initially generates three files named “Vito Corleone.txt”, “Michael Corleone.txt”, and “Apollonia Vitelli-Corleone.txt” in a user-specified directory. Following file creation, the program enables the user to search for files in this directory based on criteria specified by the user, using either string matches or regular expressions.
B. Develop a Python program that monitors a specified directory for new or updated files. Upon detecting changes, it prompts the user to enter a search pattern and choose between string methods or regex for searching. The program then checks the modified or new files against the search criteria.
Hint: The program lists full paths of files matching the search criteria.
To understand what to do~
kana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.