mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 06:04:48 +00:00
Cleanup comments and internal variables (#4205)
This commit is contained in:
parent
809019dc6e
commit
6cd46fa3ef
25 changed files with 681 additions and 572 deletions
|
@ -1,8 +1,11 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { sendSync, sendAsync } from "./dispatch_json.ts";
|
||||
|
||||
/**
|
||||
* Change owner of a regular file or directory synchronously. Unix only at the moment.
|
||||
/** Synchronously change owner of a regular file or directory. Linux/Mac OS
|
||||
* only at the moment.
|
||||
*
|
||||
* Requires `allow-write` permission.
|
||||
*
|
||||
* @param path path to the file
|
||||
* @param uid user id of the new owner
|
||||
* @param gid group id of the new owner
|
||||
|
@ -11,8 +14,11 @@ export function chownSync(path: string, uid: number, gid: number): void {
|
|||
sendSync("op_chown", { path, uid, gid });
|
||||
}
|
||||
|
||||
/**
|
||||
* Change owner of a regular file or directory asynchronously. Unix only at the moment.
|
||||
/** Change owner of a regular file or directory. Linux/Mac OS only at the
|
||||
* moment.
|
||||
*
|
||||
* Requires `allow-write` permission.
|
||||
*
|
||||
* @param path path to the file
|
||||
* @param uid user id of the new owner
|
||||
* @param gid group id of the new owner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue