mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Add Deno.realpath (#3404)
This commit is contained in:
parent
658ec2aaf9
commit
f88dc4e197
7 changed files with 157 additions and 0 deletions
15
cli/js/lib.deno_runtime.d.ts
vendored
15
cli/js/lib.deno_runtime.d.ts
vendored
|
@ -605,6 +605,21 @@ declare namespace Deno {
|
|||
isSymlink(): boolean;
|
||||
}
|
||||
|
||||
// @url js/realpath.d.ts
|
||||
|
||||
/** Returns absolute normalized path with symbolic links resolved
|
||||
* synchronously.
|
||||
*
|
||||
* const realPath = Deno.realpathSync("./some/path");
|
||||
*/
|
||||
export function realpathSync(path: string): string;
|
||||
|
||||
/** Returns absolute normalized path with symbolic links resolved.
|
||||
*
|
||||
* const realPath = await Deno.realpath("./some/path");
|
||||
*/
|
||||
export function realpath(path: string): Promise<string>;
|
||||
|
||||
// @url js/read_dir.d.ts
|
||||
|
||||
/** Reads the directory given by path and returns a list of file info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue