Getting Specific Files from a directory by manually can be hard but it can be more hard when you know that there is thousands of and you have to choose only specific extension file.
So How do we make it simple to file specific files from directory, So there is the simple answer programming.
How? Just Write an script which reads the top level files from a directory and check the extensions of each file, If that file contains the same extension as you wanted then here you go.
It's easy to say it in words, so let's start writing some code so you guys can have idea of it..
First step We're creating a CLI tool and it going to take an argument which specifies the directory path(targeted location)
and for storing data directory path we've created a struct which have field of type string
Please Checkout This For Reading More:
https://kdsingh4.blogspot.com/2021/10/how-to-read-xml-files-from-directory.html
Top comments (0)