for (const _method of fdMultiReturnMethods) {
  FileSystemObject.prototype[_method] = (function(method) {
    return function(...args) {
      if (args[args.length - 1] instanceof Function) {
        fs[method](this.fd, ...args);