Skip to main content

getProjectPath

codebolt.project.getProjectPath(): Promise<GetProjectPathResponse>
Retrieves the path of the current project.

Returns:

 Promise<GetProjectPathResponse>
A promise that resolves with the project path response.

Response Structure

{
type: 'getProjectPathResponse',
success: boolean,
message: string,
projectPath: string
}

Example

const pathResult = await codebolt.project.getProjectPath();
console.log(pathResult);
// Output: {
// type: 'getProjectPathResponse',
// success: true,
// message: 'Project path retrieved successfully',
// projectPath: 'C:\\btpl\\API_TEST\\convinced-beige'
// }