Uname:Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64

Base Dir : /var/www/machinox.in

User : root


403WebShell
403Webshell
Server IP : 13.235.167.51  /  Your IP : 216.73.217.116
Web Server : Apache
System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64
User : root ( 0)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/control.machinox.in/node_modules/next/dist/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/control.machinox.in/node_modules/next/dist/lib/recursive-readdir.js.map
{"version":3,"sources":["../../src/lib/recursive-readdir.ts"],"sourcesContent":["import fs from 'fs/promises'\nimport path from 'path'\n\ntype Filter = (pathname: string) => boolean\n\ntype Result = {\n  directories: string[]\n  pathnames: string[]\n  links: string[]\n}\n\nexport type RecursiveReadDirOptions = {\n  /**\n   * Filter to ignore files with absolute pathnames, false to ignore.\n   */\n  pathnameFilter?: Filter\n\n  /**\n   * Filter to ignore files and directories with absolute pathnames, false to\n   * ignore.\n   */\n  ignoreFilter?: Filter\n\n  /**\n   * Filter to ignore files and directories with the pathname part, false to\n   * ignore.\n   */\n  ignorePartFilter?: Filter\n\n  /**\n   * Whether to sort the results, true by default.\n   */\n  sortPathnames?: boolean\n\n  /**\n   * Whether to return relative pathnames, true by default.\n   */\n  relativePathnames?: boolean\n}\n\n/**\n * Recursively reads a directory and returns the list of pathnames.\n *\n * @param rootDirectory the directory to read\n * @param options options to control the behavior of the recursive read\n * @returns the list of pathnames\n */\nexport async function recursiveReadDir(\n  rootDirectory: string,\n  options: RecursiveReadDirOptions = {}\n): Promise<string[]> {\n  // Grab our options.\n  const {\n    pathnameFilter,\n    ignoreFilter,\n    ignorePartFilter,\n    sortPathnames = true,\n    relativePathnames = true,\n  } = options\n\n  // The list of pathnames to return.\n  const pathnames: string[] = []\n\n  /**\n   * Coerces the pathname to be relative if requested.\n   */\n  const coerce = relativePathnames\n    ? (pathname: string) => pathname.replace(rootDirectory, '')\n    : (pathname: string) => pathname\n\n  // The queue of directories to scan.\n  let directories: string[] = [rootDirectory]\n\n  while (directories.length > 0) {\n    // Load all the files in each directory at the same time.\n    const results = await Promise.all(\n      directories.map(async (directory) => {\n        const result: Result = { directories: [], pathnames: [], links: [] }\n\n        try {\n          const dir = await fs.readdir(directory, { withFileTypes: true })\n          for (const file of dir) {\n            // If enabled, ignore the file if it matches the ignore filter.\n            if (ignorePartFilter && ignorePartFilter(file.name)) {\n              continue\n            }\n\n            // Handle each file.\n            const absolutePathname = path.join(directory, file.name)\n\n            // If enabled, ignore the file if it matches the ignore filter.\n            if (ignoreFilter && ignoreFilter(absolutePathname)) {\n              continue\n            }\n\n            // If the file is a directory, then add it to the list of directories,\n            // they'll be scanned on a later pass.\n            if (file.isDirectory()) {\n              result.directories.push(absolutePathname)\n            } else if (file.isSymbolicLink()) {\n              result.links.push(absolutePathname)\n            } else if (!pathnameFilter || pathnameFilter(absolutePathname)) {\n              result.pathnames.push(coerce(absolutePathname))\n            }\n          }\n        } catch (err: any) {\n          // This can only happen when the underlying directory was removed. If\n          // anything other than this error occurs, re-throw it.\n          // if (err.code !== 'ENOENT') throw err\n          if (err.code !== 'ENOENT' || directory === rootDirectory) throw err\n\n          // The error occurred, so abandon reading this directory.\n          return null\n        }\n\n        return result\n      })\n    )\n\n    // Empty the directories, we'll fill it later if some of the files are\n    // directories.\n    directories = []\n\n    // Keep track of any symbolic links we find, we'll resolve them later.\n    const links = []\n\n    // For each result of directory scans...\n    for (const result of results) {\n      // If the directory was removed, then skip it.\n      if (!result) continue\n\n      // Add any directories to the list of directories to scan.\n      directories.push(...result.directories)\n\n      // Add any symbolic links to the list of symbolic links to resolve.\n      links.push(...result.links)\n\n      // Add any file pathnames to the list of pathnames.\n      pathnames.push(...result.pathnames)\n    }\n\n    // Resolve all the symbolic links we found if any.\n    if (links.length > 0) {\n      const resolved = await Promise.all(\n        links.map(async (absolutePathname) => {\n          try {\n            return await fs.stat(absolutePathname)\n          } catch (err: any) {\n            // This can only happen when the underlying link was removed. If\n            // anything other than this error occurs, re-throw it.\n            if (err.code !== 'ENOENT') throw err\n\n            // The error occurred, so abandon reading this directory.\n            return null\n          }\n        })\n      )\n\n      for (let i = 0; i < links.length; i++) {\n        const stats = resolved[i]\n\n        // If the link was removed, then skip it.\n        if (!stats) continue\n\n        // We would have already ignored the file if it matched the ignore\n        // filter, so we don't need to check it again.\n        const absolutePathname = links[i]\n\n        if (stats.isDirectory()) {\n          directories.push(absolutePathname)\n        } else if (!pathnameFilter || pathnameFilter(absolutePathname)) {\n          pathnames.push(coerce(absolutePathname))\n        }\n      }\n    }\n  }\n\n  // Sort the pathnames in place if requested.\n  if (sortPathnames) {\n    pathnames.sort()\n  }\n\n  return pathnames\n}\n"],"names":["recursiveReadDir","rootDirectory","options","pathnameFilter","ignoreFilter","ignorePartFilter","sortPathnames","relativePathnames","pathnames","coerce","pathname","replace","directories","length","results","Promise","all","map","directory","result","links","dir","fs","readdir","withFileTypes","file","name","absolutePathname","path","join","isDirectory","push","isSymbolicLink","err","code","resolved","stat","i","stats","sort"],"mappings":";;;;+BA+CsBA;;;eAAAA;;;iEA/CP;6DACE;;;;;;AA8CV,eAAeA,iBACpBC,aAAqB,EACrBC,UAAmC,CAAC,CAAC;IAErC,oBAAoB;IACpB,MAAM,EACJC,cAAc,EACdC,YAAY,EACZC,gBAAgB,EAChBC,gBAAgB,IAAI,EACpBC,oBAAoB,IAAI,EACzB,GAAGL;IAEJ,mCAAmC;IACnC,MAAMM,YAAsB,EAAE;IAE9B;;GAEC,GACD,MAAMC,SAASF,oBACX,CAACG,WAAqBA,SAASC,OAAO,CAACV,eAAe,MACtD,CAACS,WAAqBA;IAE1B,oCAAoC;IACpC,IAAIE,cA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