Add Deno.umask (#4290)

This commit is contained in:
dubiousjim 2020-03-10 15:11:27 -04:00 committed by GitHub
parent 6443e4aed1
commit 8078d976d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 80 additions and 0 deletions

View file

@ -287,6 +287,14 @@ declare namespace Deno {
*/
export function chdir(directory: string): void;
/**
* **UNSTABLE**: New API. Maybe needs permissions.
*
* If `mask` is provided, sets the process umask. Always returns what the umask
* was before the call.
*/
export function umask(mask?: number): number;
/** **UNSTABLE**: might move to `Deno.symbols`. */
export const EOF: unique symbol;
export type EOF = typeof EOF;