|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Moving file into folder... file doesn't inherit folder permissions?Hi,
I have an asp.net C# application, where I upload a file. It's put in a temporary location until processed, and then I do a simple File.Move to it's more permante location (which is located in a directory under the root of the web application). The folder was set to replace permissions on child objects and enable inheritance... yet when files are moved into the folder, the permissions on the file don't match the folder. Any ideas? This only seems to be an issue on Windows 2003 Standard; on WinXP, the permissions seem to set properly. Thanks Andy
Show quote
Hide quote
"Andy" <ajj3***@alum.rit.edu> wrote in message Really? I was under the impression that since like, NT, a MOVE brought news:288128c4-ab93-4e6a-b216-0b73b59d5e69@h23g2000vbc.googlegroups.com... > I have an asp.net C# application, where I upload a file. It's put in > a temporary location until processed, and then I do a simple File.Move > to it's more permante location (which is located in a directory under > the root of the web application). > > The folder was set to replace permissions on child objects and enable > inheritance... yet when files are moved into the folder, the > permissions on the file don't match the folder. > > Any ideas? This only seems to be an issue on Windows 2003 Standard; > on WinXP, the permissions seem to set properly. existing permissions with it, whereas as COPY would inherit the permissions of the destination folder. So what you're describing sounds like standard behavior, and I'm surprised you say you've seen it work differently on XP.
Other interesting topics
Sorting Array using Icomparable
solve c# problems OT: Binary Search - Should They Know It? Image Implementing IDisposable on factory pattern objects StatusStrip wiping out 2nd label Convert number to Excel column name Clearing a Collection WPF Canvas: How to find its children's location? How to determine if a string is Base64 encoded or not? |
|||||||||||||||||||||||