cgranade / posh-tex

PowerShell utilities for working with TeX and friends.
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Export-ArXiv raises superfluous errors if target directory doesn't exist. #6

Closed cgranade closed 7 years ago

cgranade commented 7 years ago

In attempting to automatically detect if a target in an arXiv manifest is a file or a directory, Expand-ArXivManifest will attempt to call (Get-Item $targetDir).PSIsContainer on each target. If the target directory does not exist, this will raise a superfluous error message. Importantly, it is entirely valid for the target directory to not exist; this is in fact the most common usecase for ancillary files which get placed in the anc/ directory of the final ZIP file. Thus, these error messages are entirely unneeded and should be suppressed.

cgranade commented 7 years ago

I can't seem to reproduce this, so I suspect it was an out-of-date version using the old way of testing for directories in the arXiv manifest. Closing in lieu of a test case.