Momentics on XP, rm -r problems

During makes on Momentics running on XP, I have found that if whole
directories need to be removed (scratch/… comes to mind), the rm -r shell
command does not always work as it complains that permission is denied. I
have traced this to a “feature” in XP where all directories are read only if
they are customized (which can happen as a result of copying into workspace,
for example). The read only attribute cannot be removed via the XP GUI, the
only way I have found of doing it is to use “attrib -r +s [directory in
question]” to allow deletion. Any directories created subsequently by make
appear to have the attributes correct for subsequent deletion.
I wondered if anyone else had seen this issue and had a more elegant
workaround.

Poseidon

try “rm -R dir” (not -r)

Rüdiger

“Poseidon” <a@b.com> schrieb im Newsbeitrag news:bgtfom$anh$1@inn.qnx.com

During makes on Momentics running on XP, I have found that if whole
directories need to be removed (scratch/… comes to mind), the rm -r
shell
command does not always work as it complains that permission is denied. I
have traced this to a “feature” in XP where all directories are read only
if
they are customized (which can happen as a result of copying into
workspace,
for example). The read only attribute cannot be removed via the XP GUI,
the
only way I have found of doing it is to use “attrib -r +s [directory in
question]” to allow deletion. Any directories created subsequently by make
appear to have the attributes correct for subsequent deletion.
I wondered if anyone else had seen this issue and had a more elegant
workaround.

Poseidon