Wintermute Engine Forum

Wintermute Engine => Bug reports => Can't reproduce => Topic started by: metamorphium on March 06, 2008, 02:55:52 PM

Title: Possible bug in GetFiles
Post by: metamorphium on March 06, 2008, 02:55:52 PM
Hi there,

I want to get all files in the directory "gfx" whose filenames start with "particles_"

However the following code returns all files in the folder gfx.

Code: [Select]
var ar = Directory.GetFiles("gfx","particles_*.*");

For now I've workaround it through IndexOf, but could be nice to see what's wrong.
Title: Re: Possible bug in GetFiles
Post by: Mnemonic on March 16, 2008, 03:04:49 PM
I'm unable to reproduce this. What were the names of the other files in the directory?
Title: Re: Possible bug in GetFiles
Post by: metamorphium on March 16, 2008, 03:21:42 PM
background.jpg
description.doc
Title: Re: Possible bug in GetFiles
Post by: Mnemonic on March 16, 2008, 03:27:20 PM
Still can't repro this. If I create these files, the above code doesn't return them.