DenoDeno.chownfunction Deno.chownallow-write#chown(path: string | URL,uid: number | null,gid: number | null,): Promise<void>Change owner of a regular file or directory. This functionality is not available on Windows. await Deno.chown("myFile.txt", 1000, 1002); Requires allow-write permission. Throws Error (not implemented) if executed on Windows. Parameters ##path: string | URLpath to the file #uid: number | nulluser id (UID) of the new owner, or null for no change #gid: number | nullgroup id (GID) of the new owner, or null for no change Return Type #Promise<void>
function Deno.chownallow-write#chown(path: string | URL,uid: number | null,gid: number | null,): Promise<void>Change owner of a regular file or directory. This functionality is not available on Windows. await Deno.chown("myFile.txt", 1000, 1002); Requires allow-write permission. Throws Error (not implemented) if executed on Windows. Parameters ##path: string | URLpath to the file #uid: number | nulluser id (UID) of the new owner, or null for no change #gid: number | nullgroup id (GID) of the new owner, or null for no change Return Type #Promise<void>