Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /lib/node_modules/pm2/node_modules/js-git/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/node_modules/pm2/node_modules/js-git/lib/modes.js
"use strict";

var masks = {
  mask:   parseInt('100000', 8),
  blob:   parseInt('140000', 8),
  file:   parseInt('160000', 8)
};

var modes = module.exports = {
  isBlob: function (mode) {
    return (mode & masks.blob) === masks.mask;
  },
  isFile: function (mode) {
    return (mode & masks.file) === masks.mask;
  },
  toType: function (mode) {
    if (mode === modes.commit) return "commit";
    if (mode === modes.tree) return "tree";
    if ((mode & masks.blob) === masks.mask) return "blob";
    return "unknown";
  },
  tree:   parseInt( '40000', 8),
  blob:   parseInt('100644', 8),
  file:   parseInt('100644', 8),
  exec:   parseInt('100755', 8),
  sym:    parseInt('120000', 8),
  commit: parseInt('160000', 8)
};

ZeroDay Forums Mini