Detection via directories and files