cmd/tests: Show that read-only files are RENAMEable.
This commit is contained in:
parent
1f5c0a6170
commit
d5523fcd80
|
@ -899,6 +899,17 @@ rem no-op
|
||||||
ren foo foo
|
ren foo foo
|
||||||
mkdir baz
|
mkdir baz
|
||||||
ren foo baz\abc
|
ren foo baz\abc
|
||||||
|
echo ... rename read-only files ...
|
||||||
|
echo > file1
|
||||||
|
attrib +r file1
|
||||||
|
ren file1 file2
|
||||||
|
if not exist file1 (
|
||||||
|
if exist file2 (
|
||||||
|
echo read-only file renamed
|
||||||
|
)
|
||||||
|
) else (
|
||||||
|
echo read-only file not renamed!
|
||||||
|
)
|
||||||
echo ... rename directories ...
|
echo ... rename directories ...
|
||||||
mkdir rep1
|
mkdir rep1
|
||||||
ren rep1 rep2
|
ren rep1 rep2
|
||||||
|
|
|
@ -601,6 +601,8 @@ bar renamed to foo
|
||||||
... name collision ...
|
... name collision ...
|
||||||
foo
|
foo
|
||||||
bar
|
bar
|
||||||
|
... rename read-only files ...
|
||||||
|
@todo_wine@read-only file renamed
|
||||||
... rename directories ...
|
... rename directories ...
|
||||||
dir renamed
|
dir renamed
|
||||||
read-only dir renamed
|
read-only dir renamed
|
||||||
|
|
Loading…
Reference in New Issue