Open
Description
Noticed that it's not getting created relative to the root on Linux.
eg.
PS /home/david> $tmpDir = [System.IO.Path]::Combine($PWD, '_TMP')
PS /home/david> $tmpDir
/home/david/_TMP
PS /home/david> New-Item -Name $tmpDir -ItemType Directory -Force -ErrorAction Ignore
Directory: /home/david/home/david
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 07/23/2021 15:44 _TMP
Looks like New-Item
is always relative to current directory on Linux. Strange but oh well.
Metadata
Metadata
Assignees
Labels
No labels