How to use the touch.ftouchSync function in touch

To help you get started, we’ve selected a few touch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / touch / touch-tests.ts View on Github external
// touch API tests
touch(strVal, (e) => console.log(e));
touch(strVal, opts, (e) => console.log(e));

touch.sync(strVal);
touch.sync(strVal, opts);

// ftouch API tests
touch.ftouch(numVal, (e) => console.log(e));
touch.ftouch(numVal, opts, (e) => console.log(e));

touch.ftouch.sync(numVal);
touch.ftouch.sync(numVal, opts);

touch.ftouchSync(numVal);
touch.ftouchSync(numVal, opts);
github DefinitelyTyped / DefinitelyTyped / types / touch / touch-tests.ts View on Github external
// touch API tests
touch(strVal, (e) => console.log(e));
touch(strVal, opts, (e) => console.log(e));

touch.sync(strVal);
touch.sync(strVal, opts);

// ftouch API tests
touch.ftouch(numVal, (e) => console.log(e));
touch.ftouch(numVal, opts, (e) => console.log(e));

touch.ftouch.sync(numVal);
touch.ftouch.sync(numVal, opts);

touch.ftouchSync(numVal);
touch.ftouchSync(numVal, opts);
github deepakk87 / m3u8-downloader / lib / downloader.js View on Github external
writeStream.on('finish', function () {
                      if (response.headers['last-modified'])
                          touch.ftouchSync(fd, { 'mtime': new Date(response.headers['last-modified']) });
                      writeStream.close();
                      fs.rename(tmpDir + '/' + fileUrl + '.download', tmpDir + '/' + fileUrl, function (err) {
                          if (!err) {
                              queue[fileUrl].finished = true;
                              queue[fileUrl].error = null;
                              queue[fileUrl].errorCount = 0;
                              cb(self);
                          } else {
                              queue[fileUrl].error = err;
                              queue[fileUrl].errorCount++;
                              cb(self);
                          }
                      });
                  });
              }, function (err) {

touch

like touch(1) in node

ISC
Latest version published 6 months ago

Package Health Score

73 / 100
Full package analysis