/* * Copyright 2026 Flix Authors * * Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE.md file. */////// Effect for checking whether a path is a directory, and its functions.///pubmod Fs.IsDirectory {use Fs.FileTest////// Effect for checking whether a path is a directory.////// Use the `IsDirectory.runWithFileTest` handler.///pubeffIsDirectory {////// Returns `true` if the given file `f` is a directory.///defisDirectory(f: String): Result[IoError, Bool] }////// Handles the `IsDirectory` effect of the given function `f` using the `FileTest` effect.///pubdefrunWithFileTest(f: Unit -> a \ ef): a \ (ef - IsDirectory) + FileTest =run { f() } withhandlerIsDirectory {defisDirectory(filename, k) = k(Fs.FileTest.isDirectory(filename)) }}