protected function isInitialPath($file)
    {
        $current_path = gplcart_path_normalize($file->getRealPath());
        $initial_path = gplcart_path_normalize($this->scanner->getInitialPath(true));

        return $current_path === $initial_path;
    }