How to list all subdirectories of a parent directory using Julia

That’s because the filename expansion is not done by ls but by your shell and Julia Cmd objects are intentionally not trying to mimic a shell. You can call the shell yourself though. Something like this should work:

readlines(`sh -c "ls -d Simulations/SHmaxSv_*/*/"`)

To find directories with Julia code, readdir and walkdir are your primary tools.