这有效:
1> file:copy(test.html, test1.html).
{ok,2384}
但这不会:
2> file:copy(test.html, sites/test.html).
** exception error: bad argument in an arithmetic expression
in operator '/'/2
called as sites / 'test.html'
如何在 Erlang 中跨目录复制文件?
非常感谢,
LRP