Skip to content
Snippets Groups Projects
Commit 50eef9a7 authored by Björn Schießle's avatar Björn Schießle
Browse files

update script to fix fscache

parent 80ed5412
No related branches found
No related tags found
No related merge requests found
<?php
// touch shared directories to trigger one-time re-scan for all users
$datadir = \OCP\Config::getSystemValue('datadirectory');
$currentVersion=OC_Appconfig::getValue('files_sharing', 'installed_version');
if (version_compare($currentVersion, '0.2.2', '<')) {
if ($handle = opendir($datadir)) {
while (false !== ($entry = readdir($handle))) {
$sharedFolder = $datadir.'/'.$entry.'/files/Shared';
if ($entry != "." && $entry != ".." && is_dir($sharedFolder)) {
touch($sharedFolder);
}
}
closedir($handle);
}
}
\ No newline at end of file
0.2.1
\ No newline at end of file
0.2.2
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment