Directory.GetFiles returns unexpected results with SearchPattern

前端 未结 2 1663
逝去的感伤
逝去的感伤 2021-01-27 05:25

I\'m working on a batch program that process a big amount of files (more than 50 000 files) and I\'m facing weird behavior with the Directory.GetFiles method.

2条回答
  •  醉话见心
    2021-01-27 06:09

    As explained by @luaan and by @hans-passant (thanks a lot !) I do not found the file with the .pdfa extension, because the 8.3 format is disabled on my hard drive.

    On a hard drive with the 8.3 format enabled, the method behaves like stated in the doc.

    The GetFiles has a different behavior with the setting enabled or not.

提交回复
热议问题