Question
I would like to use a file event job and have the script run when a new file with a variable file name is added.
When I set the target file name as "/data/*.xls", the job fires with lower case extension (.xls), but not with uppercase extension (.XLS).
When I set as"/data/*.XLS", the job fired only for files with an uppercase (.XLS) file extension.
Is there a way to make the file event job execute without regard to the case of the file name?
Answer
The names of paths, target files, and directory parts specified as monitored files in a file event job are case-sensitive. Currently, there is no way to execute a file event job without being case-sensitive.
-Countermeasures
Please consider one of the following measures:
-Set all possible file names in the file event job.
-Create a script that converts all file names to lower or upper case as preprocessing.
Comments
0 comments
Article is closed for comments.