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