/* * 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 regular file, and its functions.///pubmod Fs.IsRegularFile {use Fs.FileTest////// Effect for checking whether a path is a regular file.////// Use the `IsRegularFile.runWithFileTest` handler.///pubeffIsRegularFile {////// Returns `true` if the given file `f` is a regular file.///defisRegularFile(f: String): Result[IoError, Bool] }////// Handles the `IsRegularFile` effect of the given function `f` using the `FileTest` effect.///pubdefrunWithFileTest(f: Unit -> a \ ef): a \ (ef - IsRegularFile) + FileTest =run { f() } withhandlerIsRegularFile {defisRegularFile(filename, k) = k(Fs.FileTest.isRegularFile(filename)) }}