Skip to content

Files

Latest commit

 

History

History

Search_File

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Searching Specific files

Using the os.walk() module function and match filenames with the fnmatch module. It walks the tree top-down or bottom-up to create file names in a directory tree. It returns a 3-tuple for each directory in the tree rooted at directory top, including top itself, i.e., dirpath, dirnames, filenames.

Prerequisites

  • Python 3.x

Usage

  1. Clone the repository or download the searching_specific_files.py file.

  2. Open a terminal or command prompt and navigate to the directory where the file is located.

  3. Run the following command to start the program:

    python searching_specific_files.py