Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
387
export
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.ts
File · 0.90
route.ts
File · 0.90
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected