Current section

Files

Jump to
ex_aequo lib ex_aequo sys_interface implementation.ex
Raw

lib/ex_aequo/sys_interface/implementation.ex

defmodule ExAequo.SysInterface.Implementation do
use ExAequo.Types
@behaviour ExAequo.SysInterface.Behavior
defdelegate env(name), to: System, as: :get_env
@spec expand_path( Path.t() ) :: binary()
def expand_path path do
Path.expand(path)
end
@spec lstat( Path.t(), File.stat_options() ) :: lstat_result()
def lstat path, options \\ [] do
File.lstat(path, options)
end
@spec wildcard( Path.t(), keyword() ) :: [binary()]
def wildcard path, options \\ [] do
Path.wildcard(path, options)
end
end
# SPDX-License-Identifier: Apache-2.0