def mkdir_p(path)
      stdout, stderr, _, _ = exec("mkdir -p #{path.inspect}", :with_codes => true)

      if stderr =~ /Permission denied/
        base.say_status :permission_error, stderr, :red
        raise PermissionError, "unable to create directory #{path}"
      end
    end
def mkdir_p(path)
      stdout, stderr, _, _ = exec("mkdir -p #{path.inspect}", :with_codes => true)

      if stderr =~ /Permission denied/
        base.say_status :permission_error, stderr, :red
        raise PermissionError, "unable to create directory #{path}"
      end
    end
Creates the directory at the path on the remote server