Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-anyfs-posix-logical FR-004
The mode of a name, made from what the store can do and what the program said about ownership: the bits of write are taken away where the store cannot be written, so that a store given as read-only shows 0444 and 0555. A mode is a statement of what the view will do, never a thing kept in the store, and chmod is refused.
import { modeOf } from "./mode.ts" ;
import { DEFAULT_OWNERSHIP } from "@intellectual-frontiers/anyfs-posix/governance" ;
modeOf ("file" , new Set (["read" , "list" , "stat" ] as const ), DEFAULT_OWNERSHIP ).toString (8 ); // "444" Source: commons/anyfs-posix/src/logical/mode.ts
1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
logical.modeOffunction no test imports it function modeOf (type : FileType , capabilities : ReadonlySet <"append" | "batch" | "cas" | "delete" | "history" | "list" | "lock" | "merge" | "rangeRead" | "read" | "rename" | "search" | "stat" | "watch" | "write" >, ownership : Ownership ): number The mode of a file or a directory in a store of capabilities.
function modeOf (type : FileType , capabilities : ReadonlySet <"append" | "batch" | "cas" | "delete" | "history" | "list" | "lock" | "merge" | "rangeRead" | "read" | "rename" | "search" | "stat" | "watch" | "write" >, ownership : Ownership ): number The mode of a file or a directory in a store of capabilities.
Imported by 7 tests of the run (7 passed, 0 failed): the library's results