Thread overview | |||||
---|---|---|---|---|---|
|
July 29, 2012 How do I set file attributes? | ||||
---|---|---|---|---|
| ||||
std.file seems to have a getAttributes function, but I see no corresponding setAttributes function. What do I do if I want to copy the attributes from one file to another? |
July 29, 2012 Re: How do I set file attributes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chad J | On Sunday, July 29, 2012 16:47:50 Chad J wrote:
> std.file seems to have a getAttributes function, but I see no corresponding setAttributes function. What do I do if I want to copy the attributes from one file to another?
std.file does not provide that functionality. You'll need to use whatever C functions your OS provides to do that.
- Jonathan M Davis
|
July 29, 2012 Re: How do I set file attributes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | On 07/29/2012 04:55 PM, Jonathan M Davis wrote: > On Sunday, July 29, 2012 16:47:50 Chad J wrote: >> std.file seems to have a getAttributes function, but I see no >> corresponding setAttributes function. What do I do if I want to copy >> the attributes from one file to another? > > std.file does not provide that functionality. You'll need to use whatever C > functions your OS provides to do that. > > - Jonathan M Davis OK thanks. Enhancement request made: http://d.puremagic.com/issues/show_bug.cgi?id=8465 |
Copyright © 1999-2021 by the D Language Foundation