Error when scanDirectories
contains a directory that does not exist.
#34
Labels
scanDirectories
contains a directory that does not exist.
#34
In case a configuration file is used with an entry in
scanDirectories
that points to a directory that does not exist an error is returned.I believe this happens because
relpath
returnsfalse
after whichDIRECTORY_SEPARATOR
is appended here:unused-scanner/Lib/Config.php
Line 39 in 11a4788
It should append the
DIRECTORY_SEPARATOR
to the output ofrtrim()
, notrealpath()
. Further, there should also be a check or filter to exclude directories that don't exist (cases whenrealpath()
returnsfalse
).The text was updated successfully, but these errors were encountered: