Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialroseleen zhou
2,321 Pointsworking with files question 3
fill in the blank to find all files in the directory that have a .png file extension var files=directory.GetFiles("_");
2 Answers
zalkortis
10,332 PointsThe answer is: *.png
* means "all" when working with file systems and is mostly independent to the operating system. So this is the same for Linux, Unix, DOS, Windows, you name it.
*.* i.e. means basically all files in the given directory. It's also used as some kind of completion help. For example you're looking for a document, and you only know it's a .txt file that has the word "operations" in the name. You could type this into the console: ls *operations*.txt
This would list all files, that has the word operations somewhere in the filename and has the extension .txt
If you're missing knowledge in the console area, I highly recommend to have a look into this course: https://teamtreehouse.com/library/console-foundations
roseleen zhou
2,321 Pointsthank you