set-file-group ( path string/id -- ) (original) (raw)

set-file-group ( path string/id -- )
Unix file attributes » Unix file user and group ids

Prev: file-group-name ( path -- string )

Vocabulary
io.files.info.unix

Inputs

path a pathname string
string/id a string or a group id

Outputs
None

Word description
Sets a file's group id from the given group id or group name.

Definition

IN: io.files.info.unix

GENERIC: set-file-group ( path string/id -- )

Methods

USING: io.files.info.unix kernel math ;

M: integer set-file-group f swap set-file-ids ;

USING: io.files.info.unix kernel strings unix.groups ;

M: string set-file-group group-id f swap set-file-ids ;