'Filter some characters from filenames.
:return: A clear list of filenames.'

def _clean_filenames(self, filenames):

    resources = set()
    for line in filenames:
        if line.startswith('/'):
            line = line[1:]
        if line.startswith('./'):
            line = line[2:]
        if line.endswith('/'):
            line = line[:(-1)]
        resources.add(line)
    return resources
