def artifact_name_from_destination_filename(self, filename):
        dst = self.builder.destination_path
        filename = os.path.join(dst, filename)
        if filename.startswith(dst):
            filename = filename[len(dst):].lstrip(os.path.sep)
            if os.path.altsep:
                filename = filename.lstrip(os.path.altsep)
        return filename.replace(os.path.sep, '/')
Returns the artifact name for a destination filename.
dataset/ETHPy150Open lektor/lektor/lektor/builder.py/BuildState.artifact_name_from_destination_filename