Bug #4733
closedProcessing all files in a directory using the net.sf.saxon.Transform command: fails on MAC because of .DSStore files
100%
Description
Attempting to process all the files in an input directory (using the Transform command with -s:my/directory
) fails on MAC because the directory contains hidden .DSStore
files, which are not XML and therefore cause a fatal error. There appears to be no way to have these files ignored. Presumably this could also affect the use of collection()
to process all files in a directory, though I've never encountered it as a problem.
Updated by Michael Kay over 3 years ago
Discussed in team meeting. We agreed that a short-term fix would be to ignore "hidden" files (which probably means files starting with "." on Linux/MAC, files with the "hidden" property on Windows). Longer term, extending the command line syntax to allow a list of filenames, a glob, or a regex, might be a possibility.
Updated by Michael Kay over 3 years ago
- Status changed from New to Resolved
- Priority changed from Low to Normal
- Applies to branch 10, trunk added
- Fix Committed on Branch 10, trunk added
Added a JUnit test commands/TransformTests/testDirectory.
A file is now skipped if File.isHidden()
returns true. This has the required effect. Tested (so far) only on Mac.
Updated by O'Neil Delpratt over 3 years ago
Bug fix applied in the Saxon 10.3 maintenance release
Updated by O'Neil Delpratt over 3 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 10.3 added
Please register to edit this issue