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'
我怎樣才能在二郎跨目錄中的文件複製?
非常感謝,
LRP
並不是說'Source'和'Destination'變量可能包含'正斜槓'或'反斜槓',這取決於系統是運行windows還是unix-linux – 2012-08-06 15:00:31