Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

翻译:Deno.cwd #41

Merged
merged 2 commits into from
Apr 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,17 +390,15 @@ declare namespace Deno {
export function execPath(): string;

/**
* **UNSTABLE**: Currently under evaluation to decide if explicit permission is
* required to get the value of the current working directory.
* **不稳定**: 获取当前工作目录是否需要明确的权限,目前正在评估中。
*
* Return a string representing the current working directory.
* 返回当前工作目录的字符串。
*
* If the current directory can be reached via multiple paths (due to symbolic
* links), `cwd()` may return any one of them.
* 如果当前目录可以通过多个路径访问(由于符号链接导致),可能会返回其中任意一个。
*
* const currentWorkingDirectory = Deno.cwd();
*
* Throws `Deno.errors.NotFound` if directory not available.
* 如果目录不存在,则抛出 `Deno.errors.NotFound`
*/
export function cwd(): string;

Expand Down