MCPcopy Create free account
hub / github.com/GoogleChrome/samples / flagsToPermissionString

Function flagsToPermissionString

sqlite-wasm-cos/sqlite3-node.mjs:1714–1720  ·  view source on GitHub ↗
(flag)

Source from the content-addressed store, hash-verified

1712 return (mode & 49152) === 49152;
1713 },
1714 flagsToPermissionString(flag) {
1715 var perms = ['r', 'w', 'rw'][flag & 3];
1716 if ((flag & 512)) {
1717 perms += 'w';
1718 }
1719 return perms;
1720 },
1721 nodePermissions(node, perms) {
1722 if (FS.ignorePermissions) {
1723 return 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected