Since Paladin answered your question, I offer this advice
Instead of doing that unreliable test for directory or file, why not use:
if(-d $files[$f]) #exist and directory #or if(-f $files[$f]) #exist and file #or if(-s $files[$f]) #exist and greater then 0
Update: added first line & -s as that might help
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In reply to Re: Problems executing a copy command on win32
by kutsu
in thread Problems executing a copy command on win32
by DaWolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |