/* * 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 reading the creation time of a file, and its functions.///pubmod Fs.CreationTime {use Fs.FileTime////// Effect for reading the creation time of a file.////// Use the `CreationTime.runWithFileTime` handler.///pubeffCreationTime {////// Returns the creation time of the given file `f` in milliseconds since the epoch.///defcreationTime(f: String): Result[IoError, Int64] }////// Handles the `CreationTime` effect of the given function `f` using the `FileTime` effect.///pubdefrunWithFileTime(f: Unit -> a \ ef): a \ (ef - CreationTime) + FileTime =run { f() } withhandlerCreationTime {defcreationTime(filename, k) = k(Fs.FileTime.creationTime(filename)) }}