[lang-ref] ( get_stem ) ( powershell )
It 'should get stem' {
# Name
$r = ([System.IO.FileInfo]'/path/to/file1.txt').BaseName
$r | Should -Be 'file1'
# if path exists, just do this
# (Get-Item '/path/to/file1.txt').BaseName
}
It 'should get stem' {
# Name
$r = ([System.IO.FileInfo]'/path/to/file1.txt').BaseName
$r | Should -Be 'file1'
# if path exists, just do this
# (Get-Item '/path/to/file1.txt').BaseName
}