the function std.file.copy do not overwrite a file if "dest" already exist and they are nothing about this into documentation: http://dlang.org/phobos/std_file.html#copy maybe a boolean to force copy could help void copy(in char[] from, in char[] to, in bool force = false); In any case explain this into the doc please