<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def canAdd(self, filename):
 """Determines if a filename can be added to the depot under the current client :param filename: File path to add :type filename: str """

        try:
            result = self.run(['add', '-n', '-t', 'text', filename])[0]
        except errors.CommandError as err:
            LOGGER.debug(err)
            return False

        if result.get('code') not in ('error', 'info'):
            return True

        LOGGER.warn('Unable to add {}: {}'.format(filename, result['data']))

        return False