recursive read-only folder copy issue

Yohann Martineau yohann.martineau@gmail.com
Fri Feb 24 16:04:00 GMT 2012


hello,

sorry if this question has already been asked one thousand times, if
it's the case, google, the faq and the mailing list search engine
missed it.

If I create the following tree in windows explorer:

dir1
  dir2
    file1
  file2

Right-click on dir1 in windows explorer, uncheck grayed read-only and
check-in read-only, apply on all subfolders and files.

Open cygwin bash, type the following command line:

  cp -r dir1 dir1-1

In windows explorer, a new dir1-1 folder is created as expected, it is
possible to open this folder.

Try to open file2 in windows explorer, error "access denied". It's the
same with dir2 folder, "folder not available, access denied".

If I try to delete folder dir1-1 (using shift+del), file2 is removed
but I have an error "cannot remove folder dir2, this folder is not
empty.

Sorry if this behavior is expected.

I managed to delete this directory running chmod 755 -R dir1-1 in
cygwin shell. In this case, I can open folder dir1-1/dir2 and see that
file2 is still there. Then I can remove this dir1-1 folder from
windows explorer.

For your information, I stumbled upon this problem copying a directory
from a clearcase dynamic view mounted as a network drive. I performed
a plain vanilla test with the detailed description below.

Thank you,

yohann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 31979 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120224/a592dab3/attachment.obj>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list