Home
TeamSite
file test operator -d in wf template
mick
i'm trying to test if a file is a directory using the following bit of perl within my workflow template:
if (-d $abs_filepath) {
do_something();
} else {
do_anotherthing();
}
even if i hardcode the variable $abs_filepath to something i know is a directory, this doesn't work!
but, it works fine if run from the commandline.
is there something about workflow that would cause the -d file test not to work?
we're running TS 5.0.2 under Solaris 8
Find more posts tagged with
Comments
Johnny
There should be no difference.
Its all perl in the end of the day.
What can be different are things such as environment variables.
Post the troublesome code if you would like someone to look at it
John
Sydney, Australia
mick
sorry, i meant to include this with my original post - the wf template in question is attached - i've only just started on it so it's not a complete workflow but the troublesome bit is in there.