public function setDirPath($dirPath)
    {
        $dirPath    = trim($dirPath);
        if ($this->filesystem->isDirectory($dirPath)) {
            $this->dirPath = $this->filesystem->realPath($dirPath);
        }
    }