blob: d6e3702c6f770ac1bce423604713302fdcb660c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "../dispatch_json.ts";
export function chownSync(path: string, uid: number, gid: number): void {
sendSync("op_chown", { path, uid, gid });
}
export async function chown(
path: string,
uid: number,
gid: number
): Promise<void> {
await sendAsync("op_chown", { path, uid, gid });
}
|