RainMotorsports
Partition Master
I was writing a sync program for someone I mirror for and I noticed when I move the downloaded files after verifying the md5 the permissions are not inherited.
According to Brian Lich a Microsoft Moderator on Technet:
Normally I manually download the files from his primary mirror and cut paste them into the folder. The folder they are downloaded to does not have the permissions for the HTTP and FTP servers. The files moved via cut and paste inherit the permissions...
Not really an issue I can just do a copy and delete instead of a move in code. But is the behaviour of cut and paste in windows different than the Move in API?
According to Brian Lich a Microsoft Moderator on Technet:
I would lay down and accept this but there is a suggestion this isn't 100% the case? I mean he is indeed correct and copying the files from another location does give the new copies permissions of the target folder.When you move a file, it simply updates the file pointers and does not create a new file so the permissions will stay the same. When you copy a file, a new file is created and the permissions on the target folder are inherited. This has been by design for a long time.
Normally I manually download the files from his primary mirror and cut paste them into the folder. The folder they are downloaded to does not have the permissions for the HTTP and FTP servers. The files moved via cut and paste inherit the permissions...
Not really an issue I can just do a copy and delete instead of a move in code. But is the behaviour of cut and paste in windows different than the Move in API?
Last edited: