Changing directory read access

V

Victory

Hi,
If i change a directory's read access programmatically, will
any of the other meta data for that directory change? Is there
a way not to change any of it. Or do i need to save its
current, change it and reset it?
thanks,
Mars
 
P

Peter Duniho

If i change a directory's read access programmatically, will
any of the other meta data for that directory change?

What happens when you try it? Does any of the other meta-data change?

Seems like this is the sort of question much better answered through
experimentation.
Is there
a way not to change any of it. Or do i need to save its
current, change it and reset it?

I'm sure that if any other meta-data changes, there would be no way to
"opt out" of the change. Save and restore would be the best you can do.

Pete
 
J

Jani Järvinen [MVP]

Hi Mars,

when you say that you change the read access of a directory, how exactly are
you doing this? Are you using the System.IO.File.SetAccessControl method
perhaps?

The short answer is that other metadata will not change, but of course if
you do things using non-standard way or incorrectly, then you might see a
different in other metadata as well.

To help us solve your issue, send us a short code example of how you are
doing the change. With the code in place, we have a much better chance of
telling what exactly happens.

Thanks!

--
Regards,

Jani Järvinen
C# MVP
Vantaa, Finland
E-mail: (e-mail address removed)
Business: http://www.nimacon.net/
Personal: http://www.saunalahti.fi/janij/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top