
Moved configuration into src/config.files.json, it will also load src/config.files.local.json (which will not be included in the git repo) Added Git-Path to resolve paths simply, even when Path does not exist.
8 lines
171 B
PowerShell
8 lines
171 B
PowerShell
[CmdletBinding()]param([string]$Path)
|
|
|
|
try {
|
|
get-item $Path -Force -ErrorAction Stop |
|
|
Select-Object -ExpandProperty FullName
|
|
} catch {
|
|
$_.targetObject
|
|
}
|