file check for folders/db