/****************************************************************************** __ ____ __ / / ___ ____ _/ __/_____________ _/ /__ / / / _ \/ __ `/ /_/ ___/ ___/ __ `/ / _ \ / /___/ __/ /_/ / __(__ ) /__/ /_/ / / __/ /_____/\___/\__,_/_/ /____/\___/\__,_/_/\___/ (C)opyright 2026, Leafscale, LLC - https://www.leafscale.com Project: repoman Filename: src/paths.reef Authors: Chris Tusa License: Description: Path helpers (home expansion, registry path, log path) ******************************************************************************/ module paths import io.path as iopath import io.dir as iodir import io.file as iofile export fn expand_home(p: string): string fn join(a: string, b: string): string fn exists(p: string): bool fn is_dir(p: string): bool end export fn expand_home(p: string): string return iopath.expand_home(p) end expand_home fn join(a: string, b: string): string return iopath.join(a, b) end join fn exists(p: string): bool if iofile.fileExists(p) return true end if return iodir.dir_exists(p) end exists fn is_dir(p: string): bool return iodir.is_directory(p) end is_dir end module