Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/fs.ts>chownSync

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

Synchronously changes the owner and group of a file.

Parameters

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