June 24, 2012
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

June 24, 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 );