Improve usage of test-path

This commit is contained in:
Markus Fleschutz
2021-06-07 08:48:17 +02:00
parent a39508856b
commit 7a57971d0c
4 changed files with 11 additions and 11 deletions

View File

@ -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"