Adam's Lair Forum

game development and casual madness
It is currently 2018/04/25, 07:10

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2017/10/24, 01:09 
Newbie
Newbie
User avatar

Joined: 2017/06/22, 02:43
Posts: 9
Location: Canada
Role: Hobbyist
Hello,

Suppose I wanted to get all of the files in a directory that match a specific file type like .txt or .Scene.res. How would I be able to do this with DirectoryOp.GetFiles(), if that is possible. Thanks.

_________________
Gregory Karastergios
http://gregnk.com


Top
 Profile  
 
PostPosted: 2017/10/26, 18:08 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2042
Location: Germany
Role: Professional
You get all the files from the directory and then filter them according to the ruleset you have in mind, for example using the Where extension method and a lambda that invokes PathOp.GetExtension on each path string.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group