Programming Search⌘K

std.Io.File

The entries of std.Io.File in the Zig reference. This page has 72 cards.

std.Io.File.setPermissions

pub fn setPermissions(file: File, io: Io, new_permissions: Permissions) SetPermissionsError!void

Also known as "chmod". The process must have the correct privileges in order to do this successfully, or must have the effective user ID matching the owner of the file.

Kind
function
Module
std.Io.File

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.Io.File.writerStreaming

pub fn writerStreaming(file: File, io: Io, buffer: []u8) Writer

Positional is more threadsafe, since the global seek position is not affected, but when such syscalls are not available, preemptively initializing in streaming mode will skip a failed syscall.

Kind
function
Module
std.Io.File

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.