We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix failing test change to a file raises multiple 'change' events.
The text was updated successfully, but these errors were encountered:
Same thing is happening to me. I'm doing something like this to add/change a file.
if (part.filename !== '' && part.mimeType === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') { console.log(part) gmail.users.messages.attachments.get({ userId: 'me', messageId: id, id: part.body.attachmentId }, (err, { data }) => { if (err) return console.log('Error getting attachment: ' + err); fs.writeFile('./received_files/' + part.filename, data['data'], { encoding: 'base64' }, (err) => console.log(err)); });
It's giving me two change events even though it's only changing the file once.
Sorry, something went wrong.
yeah it's happening to me also
var newblock=hound.watch(__dirname+'/block/latest'); newblock.on('change',function(filename){ filename=filename.split('block/')[1]; log(filename); if(filename.indexOf('.')==-1){ fs.readFile(__dirname+'/block/'+filename,'utf-8',function(e,block){ log('b...'); if(catchingup!=='waiting'&&resyncing==false){setTimeout(delay_block,10000,block);} }); } });
No branches or pull requests
fix failing test
change to a file raises multiple 'change' events.
The text was updated successfully, but these errors were encountered: