Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:add,import,web: really avoid filenames ending with . on Windows [s…
…imonmichael#1056] On MS Windows, trying to add or import or web add to a file whose name ends with a dot could cause data loss, so in 2019 I made this raise an error instead (in Hledger.Read.ensureJournalFileExists). But, the logic was backward, so it did not do the check on Windows. Now it does. Also I have removed mention of this from add's doc; currently it's not documented anywhere. It's obscure, but maybe this is not ideal.
- Loading branch information