in reply to Read Directory
-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" ) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read Directory
by shmem (Chancellor) on May 26, 2017 at 07:09 UTC | |
by Corion (Patriarch) on May 26, 2017 at 07:12 UTC |