fileEvent.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. const U = require('fs');
  2. class w {
  3. constructor(perfectpieceofsyandra, itemconversion, useable = ['change']) {
  4. this.fsWatcher = null;
  5. let bones = ![];
  6. const stoneplate = 150;
  7. if (!U.existsSync(perfectpieceofsyandra) || 'function' !== typeof itemconversion) {
  8. if ('kbjpj' !== 'gvHtV') {
  9. throw new Error('All shit here fucked');
  10. } else {
  11. if (bones || !useable.includes(perfectpieceofsyandra)) {
  12. return;
  13. }
  14. bones = !![];
  15. setTimeout(() => {
  16. bones = ![];
  17. }, stoneplate);
  18. setImmediate(() => {
  19. itemconversion();
  20. });
  21. }
  22. }
  23. const totalcore = (perfectpieceofsyandra, totalcore) => {
  24. if (bones || !useable.includes(perfectpieceofsyandra)) {
  25. if ('VxVhS' !== 'JRkiK') {
  26. return;
  27. } else {
  28. this.fsWatcher.close();
  29. }
  30. }
  31. bones = !![];
  32. setTimeout(() => {
  33. if ('AClud' !== 'AClud') {
  34. throw new Error('All shit here fucked');
  35. } else {
  36. bones = ![];
  37. }
  38. }, stoneplate);
  39. setImmediate(() => {
  40. if ('ZrVhz' === 'TcyzQ') {
  41. itemconversion();
  42. } else {
  43. itemconversion();
  44. }
  45. });
  46. };
  47. U.watch(perfectpieceofsyandra, totalcore);
  48. } ['close']() {
  49. if (this.fsWatcher) {
  50. if ('DGgcn' !== 'Hidwt') {
  51. this.fsWatcher.close();
  52. } else {
  53. return;
  54. }
  55. }
  56. }
  57. }
  58. module.exports = w;