Method

IdeVcsClonerget_directory_name

Declaration

char*
ide_vcs_cloner_get_directory_name (
  IdeVcsCloner* self,
  IdeVcsUri* uri
)

Description

Gets the directory name that will be used to clone from uri.

If the path has “foo.git”, this function would be expected to return “foo”.

Parameters

uri

Type: IdeVcsUri

An IdeVcsUri.

The data is owned by the caller of the method.

Return value

Type: char*

A string containing the directory name.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.