Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Possible bug in GetFiles  (Read 10284 times)

0 Members and 1 Guest are viewing this topic.

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Possible bug in GetFiles
« 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.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Possible bug in GetFiles
« Reply #1 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?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Possible bug in GetFiles
« Reply #2 on: March 16, 2008, 03:21:42 PM »

background.jpg
description.doc
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Possible bug in GetFiles
« Reply #3 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.033 seconds with 21 queries.