mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
9bc3f5fe2a
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@80783 467b73ca-7a2a-4603-9d3b-597d59a354a9
14 lines
486 B
PHP
14 lines
486 B
PHP
<?php
|
|
|
|
class FilesystemSyncTask extends BuildTask {
|
|
protected $title = "Sync Files & Images assets";
|
|
|
|
protected $description = "The Files & Images system in SilverStripe maintains its own database
|
|
of the contents of the assets/ folder. This action will update that database, and
|
|
should be called whenever files are added to the assets/ folder from outside
|
|
SilverStripe, for example, if an author uploads files via FTP.";
|
|
|
|
function run($request) {
|
|
Filesystem::sync();
|
|
}
|
|
} |