@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
12 lines (11 loc) • 365 B
TypeScript
/**
* Gets the relative path from A to B.
* Usage:
* const sourcePath = '/home/user/documents/projectA/';
* const targetPath = '/home/user/images/';
* const relativePath = getRelativePath(sourcePath, targetPath);
* @param pathA path to A
* @param pathB path to B
* @returns
*/
export declare function getRelativePath(pathA: string, pathB: string): string;