yonojoy
yonojoy

Reputation: 5566

Move directory and inherit permissions from target folder (as Copy would do)

That's what I want to achieve for my VCL application:

I extract a ZIP file to a directory in %TEMP%. If everything was okay, I move the directory to the target dir.

For the move operation I use JclFileUtils.FileMove (from JCL which resolves to MoveFileEx), because I need a real move operation and I want to overwrite files in the target dir.

This works so far, but the moved files have a per user file permission (inherited from Temp). I want the moved files to inherit permissions from the target folder.

Remarks:

Upvotes: 0

Views: 448

Answers (0)

Related Questions