add public static
fix typo
use Filesystem::isIgnoredDir