Parsing Directory With Filenames into Array
Budget: $10 – $30 CAD
We need a fast and LINQ way of parsing all files and folders in "C:\Sharing".
What we need is to store \Jerry2022\<filename> into a array/list to iterate through later.
What we also need, is to consider any subdirectories within that first subdirectory in "Sharing".
Example:
C:\Sharing\dir1\dir2\wedding.jpg
Example:
C:\Sharing\dir1\somefile.jpg
C:\Sharing\dir1\dir2\dir3\anotherfile.jpg
So as you can see, I want to add file and subdirectory name to a string array or List. Any help appreciated!
What we need is to store \Jerry2022\<filename> into a array/list to iterate through later.
What we also need, is to consider any subdirectories within that first subdirectory in "Sharing".
Example:
C:\Sharing\dir1\dir2\wedding.jpg
Example:
C:\Sharing\dir1\somefile.jpg
C:\Sharing\dir1\dir2\dir3\anotherfile.jpg
So as you can see, I want to add file and subdirectory name to a string array or List. Any help appreciated!