This commit is contained in:
Francesco Mecca 2024-12-07 13:58:03 +01:00
parent 1afe333a4e
commit 0055b8f6cb

View file

@ -142,22 +142,9 @@ module FileSystem =
let resolve (path: IPath) = let resolve (path: IPath) =
Native.realpath path.string_value |> Result.bind Path.of_string Native.realpath path.string_value |> Result.bind Path.of_string
(* (*
module Pentole.Path
/// <summary>
/// Return the parent path
/// </summary>
/// <param name="path"></param>
let parent (path: Path) =
failwith "TODO"
let relative_to (parent: Path) (child: Path) = let relative_to (parent: Path) (child: Path) =
match (parent, child) with // TODO: don't use bcl because it resolves on the FS
| (Absolute parent | Relative parent), (Absolute child| Relative child) ->
System.IO.Path.GetRelativePath (parent, child)
|> Path.of_string
/// <summary> /// <summary>