www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How do I set file attributes?

reply Chad J <chadjoan __spam.is.bad__gmail.com> writes:
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?
Jul 29 2012
parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
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
Jul 29 2012
parent Chad J <chadjoan __spam.is.bad__gmail.com> writes:
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
Jul 29 2012