owncloud/core — pull request #8607 by ringmaster (2014-05-16 02:55:34+00:00)
Title: Allow apps to control via a hook to skip adding/removing a file during filescan

Rare environment-specific scenarios exist that can leave either the cache data or file stranded to be deleted when it should be maintained or archived for review.

This PR attempts to provide a tool for an app developer to affect the behavior of the filescan operation so that files and/or data that would otherwise be deleted by the filescan can optionally be retained or moved.

Very basic sample code for use (app.php):
```php