protected function customChmod(string $target, $mode = 0666)
    {
        if (false === @chmod($target, $mode & ~umask())) {
            throw new FileException(sprintf('Unable to change mode of the "%s"', $target));
        }
    }