MCPcopy Create free account
hub / github.com/Effect-TS/effect / negativePosition

Function negativePosition

packages/platform/node-shared/src/NodeFileSystem.ts:291–296  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

289 (error.reason.cause as NodeJS.ErrnoException | undefined)?.code === "ESPIPE"
290
291const negativePosition = (method: string) =>
292 Error.badArgument({
293 module: "FileSystem",
294 method,
295 description: "Cannot read before the start of the file"
296 })
297
298const makeFile = (() => {
299 const nodeReadFactory = (method: string) =>

Callers 2

readMethod · 0.85
readAllocMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected