[FileBackend] Avoid some stat calls in various operations.
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 30 Oct 2012 11:04:05 +0000 (04:04 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 8 Nov 2012 06:35:05 +0000 (06:35 +0000)
commit84f94fdfd2f6eae5422d3f26b0529b413ef7f49b
tree03597ddc5ed4dd4c211a5b547e55f55d452d92a7
parentc43deebfd530415b3cf2aacb9d0b114ce867765b
[FileBackend] Avoid some stat calls in various operations.

* copy() and rename() will overwrite any destination, including on Windows.
  Tested with Windows 7, and even rename() does this. The /Y flag is also
  set for Windows cmd commands now.
* Set the "binary mode" /B flag for Windows cmd commands.

Change-Id: Id11f31b020f786d5b66b0c57298ecc2b9d6170fb
includes/filebackend/FSFileBackend.php