sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.1k stars 210 forks source link

temporary directory remains after running fontforge #324

Open lajy78 opened 8 years ago

lajy78 commented 8 years ago

Before running fontforge, source files are copied to a temporary directory.

// Copy source files to temporary directory
var tempDir = temp.mkdirSync();
o.files.forEach(function(file) {
    fs.writeFileSync(path.join(tempDir, o.rename(file)), fs.readFileSync(file));
});

Why is this temporary directory not removed at the end of the process? Thanks.

sapegin commented 8 years ago

I don’t know. Maybe it’s a bug, maybe nobody wrote any code to remove it. I’ll be happy to merge a pull request with a fix.