fnmatch seems to be obsolete lazarus / 8-Other ---------------------------------------------------------------------- sasa · 2010-01-25 21:02 According to several sites, fnmatch seems to be obsolete. And parameter definition is changed in FPC 2.4.0. What is better/new FPC/Lazarus substitution for Linux? ---------------------------------------------------------------------- marcov · 2010-01-25 21:35 Quote from: sasa on January 25, 2010, 10:02:29 pmAccording to several sites, fnmatch seems to be obsolete. And parameter definition is changed in FPC 2.4.0. What is better/new FPC/Lazarus substitution for Linux? http://www.freepascal.org/docs-html/rtl/sysutils/filesearch.html fnmatch has been deprecated since the (2005)  2.0.0 release (and in the development branch somewhere in summer 2004) ---------------------------------------------------------------------- sasa · 2010-01-26 06:34 Thank you. Indeed, I used very old FPC and now change makes a problem... I need lower approach than FileSearch since I have my own class working with files and directories. Fnmatch is used instead FindFirst/Next to fix some problem with attributes, IIRC... I will retest again functionality with FindFirst/Next.... ---------------------------------------------------------------------- Bart · 2010-01-26 08:07 I did that some while ago, using a TMask to do the actual matching. Take a look at ExtMasks and EnumDir at my homepage at http://home.tiscali.nl/~knmg0017/laz_fpc_libs.htm The ExtMasks unit provides th same functionality as TMask, but you can specify wether the mask is case sensitive or not. Bart