-d BUS will not do what you think it does. It checks (in an arcane way) for a directory named "BUS", but in the current directory, not in the directory denoted by $path.
Maybe you simply want to use the full path directly?
if( -d "$path/BUS" ) { ... }
In reply to Re: Read Directory
by Corion
in thread Read Directory
by Nansh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |