Not quite. While it's a step in the right direction, your program dies on inputs (2) and (4), and returns the incorrect result for inputs (1) and (3). The OP's tool has a very odd usage syntax.
devlele, have you considered using a switch (say -r) to decide whether to recurse or not. * normally means something else.
In reply to Re^2: To retrieve all files according to given path list
by ikegami
in thread To retrieve all files according to given path list
by devlele
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |