feat: Added function to handle symlink (#227)

This commit was merged in pull request #227.
This commit is contained in:
jedi04
2025-09-15 08:00:16 +05:30
committed by GitHub
parent a4feb67c08
commit 2323885b6c
3 changed files with 157 additions and 2 deletions

View File

@@ -969,6 +969,20 @@ export async function listSSHFiles(
}
}
export async function identifySSHSymlink(
sessionId: string,
path: string,
): Promise<{ path: string; target: string; type: "directory" | "file" }> {
try {
const response = await fileManagerApi.get("/ssh/identifySymlink", {
params: { sessionId, path },
});
return response.data;
} catch (error) {
handleApiError(error, "identify SSH symlink");
}
}
export async function readSSHFile(
sessionId: string,
path: string,