Rather than limiting the program to working just within the list of files and directories obtained from the JIRA ticket, I'd go the extra mile to be sure I had it right. I'd compare the list against the SVN repository. That would enable you to differentiate between files and directories. For example, comparing a line ( or a portion of a line ) from the ticket, against the output from something like:
Code:
svn list --depth files ...
which excludes directories. Naturally, the ... would be replaced with the proper args and repository designation, to suit the specifics of the situation.