Name globbing and recursive directories under Windows
Name globbing means matching wildcard patterns to actual file names. If you know what this term means, you are probably annoyed at how programs on Windows typically handle this. The Win32 version of this program goes beyond the pattern matching that Windows provides, and allows you to specify fancy UNIX-like patterns such as:
jhead c:\pix\199*\*\*.jpg
This program goes one step beyond beyond that in that "**" as a path component means any level of subdirectories. The invocation
jhead c:\**\*.jpg
will find ALL Jpegs files on the c: drive, including those in the root directory. The ** only works if it is the only part of that path component. For example, the path 'c:\a**\*.jpg' will not recurse. The '**' recursive expansion is ONLY supported on the Windows version. The code is in the module 'myglob.c', if you want to reuse it (I certainly intend to reuse that code for other applications).
Under Unix, the shell's wildcard expansion is pretty decent already, and dealing with the convoluted nature of some Unix file layouts, doing better would have been much more of a challenge.
Lesezeichen