Skip to content

_TMP is getting created in the wrong place. #27

Description

@flcdrg

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions