about std.file.copy

bioinfornatics bioinfornatics at fedoraproject.org
Sun Jun 24 16:09:02 PDT 2012


Le dimanche 24 juin 2012 à 22:38 +0200, bioinfornatics a écrit :
> Hi,
> 
> I want to copy a file with executable mode (755 on UNIX) to another
> location. when i use std.file.copy original is into 755 bot not the
> copied file! 
> 
> The are a way to save the mode ?
> 
> thanks
> 

fixed by doing
    version( Posix )
        chmod( dest.toStringz, S_IRUSR| S_IWUSR| S_IXUSR | S_IRGRP|
S_IXGRP| S_IROTH | S_IXOTH );



More information about the Digitalmars-d-learn mailing list