flix

0.69.3

Fs.IsDirectory

eff IsDirectorySource

An effect used to check if a path is a directory.

Use the IsDirectory.runWithFileTest handler.

Operations

def isDirectory(f: String): Result[IoError, Bool] \ IsDirectory Source

Returns true if the given file f is a directory.

Definitions

def runWithFileTest(f: Unit -> a \ ef): a \ (ef - IsDirectory) + FileTest Source

Handles the IsDirectory effect of the given function f using the FileTest effect.