Project

Profile

Help

Bug #4733

Processing all files in a directory using the net.sf.saxon.Transform command: fails on MAC because of .DSStore files

Added by Michael Kay about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Command Line
Sprint/Milestone:
-
Start date:
2020-09-11
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:

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.

History

#1 Updated by Michael Kay about 1 year 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.

#2 Updated by Michael Kay about 1 year 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.

#3 Updated by O'Neil Delpratt 11 months ago

Bug fix applied in the Saxon 10.3 maintenance release

#4 Updated by O'Neil Delpratt 11 months 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

Also available in: Atom PDF