private function _setTags($path)
{
foreach ($this->tags as $tg) {
$file = $this->directoryTags . '/' . $tg;
$file = $this->normalize_path($file, false);
if (!is_dir(dirname($path))) {
$this->createCacheDirectory($file);
//$this->files->put($file, $path);
@file_put_contents($file, "{$path}");
} else {
if (is_file($file)) {
$farr = file($file);
if (!in_array($path, $farr)) {
@file_put_contents($file, "\n{$path}", FILE_APPEND);
}
}
}
}
// $this->tags = array();
}