Bug #17566
closed"cli_dispatch.phpsh lowlevel_cleaner missing_files" list an existing directory as a missing file
0%
Description
In the "Constants" field of my root level template i have this constant:
========
REL_PATH_PREFIX = fileadmin/brp/template/
========
"REL_PATH_PREFIX" in then used in "Setup":
========
plugin.tx_automaketemplate_pi1.relPathPrefix = {$REL_PATH_PREFIX}
========
That is, i think, the right way to configure automaketemplate.
When i run the command line :
========
./typo3/cli_dispatch.phpsh lowlevel_cleaner missing_files r -v 2 -s --refindex check
--------------------------------------------
[missing_files]
List of missing files registered as a soft reference [WARNING]
---------------------------------------------
Explanation: Shows the relative filename of missing file as header and under a list of
record fields in which the references are found. The list of records is
organized as [table]:[uid]:[field]:[flexpointer]:[softref_key]
Array
(
[fileadmin/brp/template/] => Array
(
[79c97f8axxEf19d7aa2ef16fc3e4c7f7] => sys_template:1:constants::TStemplate
)
) ========
Is it possible / good to relax the test in class.missing_files.php ?
Something like:
======== Line 131
// Minor change to not report directories as missing file
//if (!@is_file(PATH_site.$rec['ref_string'])) {
if (!@is_file(PATH_site.$rec['ref_string']) && !@is_dir(PATH_site.$rec['ref_string'])) {
========
Thank you for your suggestion.
PS: isn't it possible to select PHP Version 4.4 when reporting a bug ?
(issue imported from #M6232)