[erlang-bugs] filelib:wildcard

Samuel Rivas samuelrivas@REDACTED
Mon Sep 10 11:57:36 CEST 2007


Hi,

  I'm getting strange results with filelib:wildcard/2 (tested in R11B-1 and
R11B-5):

3> filelib:wildcard("ebin/*.app", "/home/samuel/local/src/yaws").
[]
4> filelib:wildcard("*/*.app", "/home/samuel/local/src/yaws").
["ebin/yaws.app"]


  If I move to Cwd it works as I expected (even though it is a symlink):

8> cd("/home/samuel/local/src/yaws").
/var/local/scratch/samuel/src/yaws-1.58
ok
9> filelib:wildcard("ebin/*.app", "/home/samuel/local/src/yaws").
["ebin/yaws.app"]

  If this is a bug, a simple workaround is using filelib:wildcard/1 and
filename:join/2 to build an absolute wildcard.

  Regards
-- 
	Samuel



More information about the erlang-bugs mailing list