const OVERWRITE = 2;
const OVERWRITE_SAME = 4;
const SKIP_LOCKING = 8;
- const ALLOW_STALE = 16;
/** @var FileBackendBase */
protected $backend;
* self::OVERWRITE_SAME Overwrite the file if the destination exists and has the
* same contents as the source
* self::SKIP_LOCKING Skip any file locking when doing the store
- * self::ALLOW_STALE Don't require latest data for existence checks
* @return FileRepoStatus
*/
public function store( $srcPath, $dstZone, $dstRel, $flags = 0 ) {
if ( $flags & self::SKIP_LOCKING ) {
$opts['nonLocking'] = true;
}
- if ( $flags & self::ALLOW_STALE ) {
- $opts['allowStale'] = true;
- }
$status->merge( $backend->doOperations( $operations, $opts ) );
// Cleanup for disk source files...
foreach ( $sourceFSFilesToDelete as $file ) {