return true if the filename has the given attribute set