mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Improve usage of test-path
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
|
||||
try {
|
||||
$Path = "$HOME/Memos.csv"
|
||||
if (test-path "$Path") {
|
||||
if (test-path "$Path" -pathType leaf) {
|
||||
write-progress "Reading $Path ..."
|
||||
$Table = import-csv "$Path"
|
||||
write-progress -completed "Reading $Path"
|
||||
|
Reference in New Issue
Block a user