Checking if file is valid or not if it was valid then return true else false
true
false
bool isValid(String path, String root);