function isTmpFile($file) { $len = strlen($this->config['tmp_prefix']); if (substr($file, 0, $len) == $this->config['tmp_prefix']) { return true; } else { return false; } }