June 24, 2012 about std.file.copy | ||||
---|---|---|---|---|
| ||||
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 Re: about std.file.copy | ||||
---|---|---|---|---|
| ||||
Posted in reply to bioinfornatics | 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 );
|
Copyright © 1999-2021 by the D Language Foundation