[groovy] How to check if a directory containing a file exist?