Replies: 1 comment
-
Omg sorry I got it haha. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
Super new to this and likely very simple answer. Hoping someone can help!
I'm stuck on 'can create a New-Item'
Updated from original post. Can anyone see where I'm going wrong? - Okay new update lol. It's something to do with this line but I cant seem to correctly amend it $File = ____ -Path $FilePath -ItemType File
PS C:\Users\Thomas\AppData\Local\Temp> $FilePath = "$env:TMP/YOUR_PATH.txt"
PS C:\Users\Thomas\AppData\Local\Temp> New-Item -path $filepath -ItemType File
Mode LastWriteTime Length Name
-a---- 18/04/2021 14:39 0 YOUR_PATH.txt
PS C:\Users\Thomas\AppData\Local\Temp> karma
Describe : Basic Verbs
It : can create a New-Item
Expectation : Expected the value to have type [System.IO.FileInfo] or any of its subtypes, but got
with type [Blank].
Meditation : at , C:\Users\Thomas\PSKoans\Introduction\AboutCmdletVerbs.Koans.ps1: line
108
108: $File | Should -BeOfType [System.IO.FileInfo]
KoansPassed : 39
TotalKoans : 682
CurrentTopic : @{Completed=3; Name=AboutCmdletVerbs; CurrentLine=108; Total=9}
Beta Was this translation helpful? Give feedback.
All reactions