Skip to main content
Module

x/deno/js/deno.ts>chown

A modern runtime for JavaScript and TypeScript.
Go to Latest
function chown
import { chown } from "https://deno.land/x/deno@v0.17.0/js/deno.ts";

Change owner of a regular file or directory asynchronously. Unix only at the moment.

Parameters

path: string

path to the file

uid: number

user id of the new owner

gid: number

group id of the new owner

Returns

Promise<void>