Bu gün bir kodu derlerken bu şekilde bir hata aldım.
'Error: module map is in file 'std/map.d' which cannot be read'
import std.file;
void copyDir(string from, string to)
{
auto mdFiles = dirEntries(from, SpanMode.shallow);
foreach(md; mdFiles)
{
copy(md, to ~ "/" ~ md);
}
}
void main(string[] args)
{
}
Bu hatayı oluşturmak için yukarıdaki kodu derlemek yeterli. Daha sonra std/file.d kütüğünün copy işlevini
import std.meta : staticMap;
olarak düzeltmek gerekiyormuş.
--
[ Bu gönderi, http://ddili.org/forum'dan dönüştürülmüştür. ]