[erlang-bugs] filelib bug

Martin Bjorklund <>
Mon Sep 4 12:46:18 CEST 2006

There's a bug in filelib:wildcard/2, as illustrated by this example:

Eshell V5.5.1  (abort with ^G)
1> filelib:wildcard("foo*", "/tmp").

this is correct.

but then i try:

2> filelib:wildcard("foo*", "//tmp").
3> filelib:wildcard("foo*", "/tmp/").

which obviously is wrong.

a simple fix is to do a filename:join() on the Cwd in filelib.


More information about the erlang-bugs mailing list