Hello,
1) Copying from a local drive to a network drive gives me an error.
But if I repeat the command again and again until I have no error, then the copy is correctly done.
See here:
C:\test>cp -rv a Z:
cp: cannot create directory `Z:a': Permission denied
C:\test>cp -rv a Z:
cp: cannot create directory `Z:a/aa': Permission denied
cp: cannot create directory `Z:a/ab': Permission denied
cp: cannot create directory `Z:a/ac': Permission denied
C:\test>cp -rv a Z:
cp: cannot create directory `Z:a/aa/aaa': Permission denied
cp: cannot create directory `Z:a/aa/aab': Permission denied
C:\test>cp -rv a Z:
2) Copying from a local drive to a local drive gives me no error.
Typing the command one time is enough.
See here:
C:\test>cp -rv a b
a' ->b'
a/aa' ->b/aa'
a/aa/aaa' ->b/aa/aaa'
a/aa/aab' ->b/aa/aab'
a/ab' ->b/ab'
a/ac' ->b/ac'
3) Copying from a network drive to a local drive gives me no error.
Typing the command one time is enough.
See here:
Z:>cp -rv a C:
a' ->C:a'
a/aa' ->C:a/aa'
a/aa/aaa' ->C:a/aa/aaa'
a/aa/aab' ->C:a/aa/aab'
a/ab' ->C:a/ab'
a/ac' ->C:a/ac'
4) Copying from a network drive to a network drive gives me an error.
But if I repeat the command again and again until I have no error, then the copy is correctly done.
See here:
Z:>cp -rv a b
cp: cannot create directory `b': Permission denied
Z:>cp -rv a b
cp: cannot create directory `b/a': Permission denied
Z:>cp -rv a b
cp: cannot create directory `b/a/aa': Permission denied
cp: cannot create directory `b/a/ab': Permission denied
cp: cannot create directory `b/a/ac': Permission denied
Z:>cp -rv a b
cp: cannot create directory `b/a/aa/aaa': Permission denied
cp: cannot create directory `b/a/aa/aab': Permission denied
Z:>cp -rv a b
Conclusion: As the case 1) and 4) give an error, I think that the "cp" command has a bug when copying to a network drive.
Any idea how to solve this problem?
Thank you.
Best regards.