Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/node/fs.ts>chown

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function chown
Re-export
import { chown } from "https://deno.land/std@0.129.0/node/fs.ts";

Asynchronously changes the owner and group of a file.

Parameters

path: string | Buffer | URL
uid: number
gid: number
callback: CallbackWithError