PHP 8.2.30
Preview: fs.js Size: 429 B
/proc/self/root/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules/graceful-fs/fs.js

'use strict'

var fs = require('fs')

module.exports = clone(fs)

function clone (obj) {
  if (obj === null || typeof obj !== 'object')
    return obj

  if (obj instanceof Object)
    var copy = { __proto__: obj.__proto__ }
  else
    var copy = Object.create(null)

  Object.getOwnPropertyNames(obj).forEach(function (key) {
    Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
  })

  return copy
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
429 B lrw-r--r-- 2021-09-28 11:28:26
Edit Download
6.78 KB lrw-r--r-- 2021-09-28 11:28:26
Edit Download
2.59 KB lrw-r--r-- 2021-09-28 11:28:26
Edit Download
781 B lrw-r--r-- 2021-09-28 11:28:26
Edit Download
2.14 KB lrw-r--r-- 2021-09-28 11:28:26
Edit Download
8.63 KB lrw-r--r-- 2021-09-28 11:28:26
Edit Download
4.35 KB lrw-r--r-- 2021-09-28 11:28:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).