ironmonkey69
Programmer
Hi all,
I have been having problems setting up an 'if' statement that is using a 'isdirectory' command. I pass a string into the if statement thru a command line argument. The backup file exists in the directory that it is looking in but the if statement keeps falling through. Here is a copy of the code that I am using:
proc test {args} {
for each new $args
if{[file isdirectory $args.original] == 1}
set dir "$args"
set dirOriginal "$args.original"
exec mv -f $dirOriginal $dir
I have been having problems setting up an 'if' statement that is using a 'isdirectory' command. I pass a string into the if statement thru a command line argument. The backup file exists in the directory that it is looking in but the if statement keeps falling through. Here is a copy of the code that I am using:
proc test {args} {
for each new $args
if{[file isdirectory $args.original] == 1}
set dir "$args"
set dirOriginal "$args.original"
exec mv -f $dirOriginal $dir