2009/dap/file-system file-dir-sys.html,1.38,1.39

Update of /sources/public/2009/dap/file-system
In directory hutz:/tmp/cvs-serv6131/file-system

Modified Files:
	file-dir-sys.html 
Log Message:
Clarify restrictions on copy; they should match move.


Index: file-dir-sys.html
===================================================================
RCS file: /sources/public/2009/dap/file-system/file-dir-sys.html,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- file-dir-sys.html	7 Jun 2011 01:39:06 -0000	1.38
+++ file-dir-sys.html	22 Sep 2011 00:04:08 -0000	1.39
@@ -561,7 +561,7 @@
                 not empty.</li>
               </ul>
               A move of a file on top of an existing file MUST attempt to
-              delete and replace that file.
+              delete and replace that file.<br>
               A move of a directory on top of an existing empty directory MUST
               attempt to delete and replace that directory.
             </p>
@@ -588,11 +588,24 @@
           <dt>void copyTo (DirectoryEntry parent, DOMString newName)</dt>
           <dd>
             <p>
-              Copy an entry to a different location on the file system. It is an
-              error to try to copy an entry inside itself at any depth if it is
-              a directory, or to copy it into its parent if a name different
-              from its current one isn't provided.  Directory copies are always
-              recursive--that is, they copy all contents of the directory.
+              Copy an entry to a different location on the file system.
+              It is an error to try to:
+              <ul>
+                <li>copy a directory inside itself or to any child at any
+                depth;</li>
+                <li>copy an entry into its parent if a name different from its
+                current one isn't provided;</li>
+                <li>copy a file to a path occupied by a directory;</li>
+                <li>copy a directory to a path occupied by a file;</li>
+                <li>copy any element to a path occupied by a directory which is
+                not empty.</li>
+              </ul>
+              A copy of a file on top of an existing file MUST attempt to
+              delete and replace that file.<br>
+              A copy of a directory on top of an existing empty directory MUST
+              attempt to delete and replace that directory.<br>
+              Directory copies are always recursive--that is, they copy all
+              contents of the directory.
             </p>
             <dl class='parameters'>
               <dt>DirectoryEntry parent</dt>

Received on Thursday, 22 September 2011 00:04:12 UTC