MCPcopy Index your code
hub / github.com/simstudioai/sim / parsePermissions

Function parsePermissions

apps/sim/app/api/tools/ssh/utils.ts:387–389  ·  view source on GitHub ↗
(mode: number)

Source from the content-addressed store, hash-verified

385 * Parse file permissions from octal string
386 */
387export function parsePermissions(mode: number): string {
388 return `0${(mode & 0o777).toString(8)}`
389}
390
391/**
392 * Get file type from attributes mode bits

Callers 2

route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected