Trying to wrap my head around julia's file handling (still!)

For 1. you need the function readdir or walkdir and occursin. See Filesystem · The Julia Language
For 2. probably Base.stat(file) Filesystem · The Julia Language

Not sure if there is a bullet proof way to figure out if a file is binary.