Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 753 Bytes

File metadata and controls

22 lines (16 loc) · 753 Bytes

Dev Tasks

Path concatanation for all pathing variables for consistancy

use system.io.path for pathing

Question: does join-path use system.io.path? Answer: yes, it does so no point in creating a new function as it is just a wrapper for the system.io.path

$rootpath = Join-Path -Path $PSScriptRoot -ChildPath 'libs'
$outPath = Join-Path -Path $PSScriptRoot -ChildPath 'out'
$outPath = Join-Path -Path $outPath -ChildPath 'out'

or

$rootpath = [system.io.path]::combine($PSScriptRoot, 'libs')
$outPath = [system.io.path]::combine($PSScriptRoot, 'out')
$outPath = [system.io.path]::combine($outPath, 'out')