({
targetPath,
symlinkPath,
type,
}: {
targetPath: string
symlinkPath: string
type: SymlinkType
})
| 162 | * NOTE: symlinks are not supported widely on Windows |
| 163 | */ |
| 164 | const symlink = ({ |
| 165 | targetPath, |
| 166 | symlinkPath, |
| 167 | type, |
| 168 | }: { |
| 169 | targetPath: string |
| 170 | symlinkPath: string |
| 171 | type: SymlinkType |
| 172 | }): T.Effect<OT.HasTracer, SymlinkError, void> => |
| 173 | OT.withSpan('symlink', { attributes: { targetPath, symlinkPath, type } })( |
| 174 | T.tryCatchPromise( |
| 175 | () => fs.symlink(targetPath, symlinkPath, type), |
| 176 | (error) => new SymlinkError({ targetPath, symlinkPath, type, error }), |
| 177 | ), |
| 178 | ) |
| 179 | |
| 180 | export const NodeFsLive = L.fromValue(FsTag)({ |
| 181 | fileOrDirExists, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…