www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - std.file.copy

reply bioinfornatics <bioinfornatics fedoraproject.org> writes:
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 =3D false);

In any case explain this into the doc please
Jun 25 2012
parent reply "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Tuesday, June 26, 2012 02:08:00 bioinfornatics wrote:
 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
The behavior of std.file.copy probably needs to be better defined in general: http://d.puremagic.com/issues/show_bug.cgi?id=3862 - Jonathan M Davis
Jun 25 2012
parent bioinfornatics <bioinfornatics fedoraproject.org> writes:
Le lundi 25 juin 2012 =C3=A0 20:18 -0400, Jonathan M Davis a =C3=A9crit :
 On Tuesday, June 26, 2012 02:08:00 bioinfornatics wrote:
 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
=20
 maybe a boolean to force copy could help
=20
 void copy(in char[] from, in char[] to, in bool force =3D false);
=20
 In any case explain this into the doc please
=20 The behavior of std.file.copy probably needs to be better defined in gene=
ral:
=20
 http://d.puremagic.com/issues/show_bug.cgi?id=3D3862
=20
 - Jonathan M Davis
thanks i hope a little update about this will come soon. When i see date of his bug i fear we are now in 2012. (no offense :-) )
Jun 26 2012