github.com/jfrog/frogbot@v1.1.1-0.20231221090046-821a26f50338/action/node_modules/@actions/io/lib/io-util.d.ts (about)

     1  /// <reference types="node" />
     2  import * as fs from 'fs';
     3  export declare const chmod: typeof fs.promises.chmod, copyFile: typeof fs.promises.copyFile, lstat: typeof fs.promises.lstat, mkdir: typeof fs.promises.mkdir, readdir: typeof fs.promises.readdir, readlink: typeof fs.promises.readlink, rename: typeof fs.promises.rename, rmdir: typeof fs.promises.rmdir, stat: typeof fs.promises.stat, symlink: typeof fs.promises.symlink, unlink: typeof fs.promises.unlink;
     4  export declare const IS_WINDOWS: boolean;
     5  export declare function exists(fsPath: string): Promise<boolean>;
     6  export declare function isDirectory(fsPath: string, useStat?: boolean): Promise<boolean>;
     7  /**
     8   * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
     9   * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
    10   */
    11  export declare function isRooted(p: string): boolean;
    12  /**
    13   * Best effort attempt to determine whether a file exists and is executable.
    14   * @param filePath    file path to check
    15   * @param extensions  additional file extensions to try
    16   * @return if file exists and is executable, returns the file path. otherwise empty string.
    17   */
    18  export declare function tryGetExecutablePath(filePath: string, extensions: string[]): Promise<string>;
    19  export declare function getCmdPath(): string;