@kui-shell/core
Version:
An Electron-based shell for cloud-native development
14 lines (13 loc) • 438 B
TypeScript
/**
* Notes:
*
* - path.resolve() turns /kui/x into c:\kui\x. We just want to
* absolute-ify a local filepath if it isn't already so.
*
* - this only works for local filepaths; if we wanted this to work
* for all kui VFS, we would need to use `vfs ls`, which is
* asynchronous.
*
* @return An absolute path for the given `path`, only if it is not already absolute
*/
export default function absolute(filepath: string): string;