Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1754

tika-batch's FileListCrawler truncates the first character of the fileList if the root is e.g. X:

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.10
    • None
    • batch

    Description

      The FileListCrawler takes a root directory and a list of relative file paths and "crawls" that list as if it were a directory crawler. If the root is specified as, e.g. "X:" on a Windows system, the call to substring on root's absolute path and the subtraction of one character is incorrect.

      With a root of X: and a relative file of "dir1/dir2/file.doc", the output file is: "X:/ir/dir2/file.doc.txt"

      Let's get rid of the substring calculations and move to Java 7!

      See TIKA-1747.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tallison Tim Allison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: