Skip to content

checkTarget

const checkTarget: (
directory: string,
) => Effect.Effect<
boolean,
CreateError | PlatformError.PlatformError,
FileSystem.FileSystem | Path.Path
>

Defined in: index.ts:240

Fails unless the target does not exist or is a directory that holds nothing but ignorable entries. Succeeds with whether it holds any.

Parameter Type
directory string

Effect.Effect<boolean, | CreateError | PlatformError.PlatformError, FileSystem.FileSystem | Path.Path>