diff options
| author | Egor Tensin <egor@tensin.name> | 2025-12-16 16:49:47 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2025-12-16 16:49:47 +0100 |
| commit | 1d134f39e7ded438b1de12160f6ec7f99eafb8f7 (patch) | |
| tree | d277bd11747332b962c109b419f95ede150fb6a9 /node_modules/@actions/io/lib/io-util.d.ts | |
| parent | workflows/test: upgrade actions (diff) | |
| download | cleanup-path-1d134f39e7ded438b1de12160f6ec7f99eafb8f7.tar.gz cleanup-path-1d134f39e7ded438b1de12160f6ec7f99eafb8f7.zip | |
bump dependencies
Diffstat (limited to '')
| -rw-r--r-- | node_modules/@actions/io/lib/io-util.d.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/@actions/io/lib/io-util.d.ts b/node_modules/@actions/io/lib/io-util.d.ts new file mode 100644 index 0000000..0241e72 --- /dev/null +++ b/node_modules/@actions/io/lib/io-util.d.ts @@ -0,0 +1,21 @@ +/// <reference types="node" /> +import * as fs from 'fs'; +export declare const chmod: typeof fs.promises.chmod, copyFile: typeof fs.promises.copyFile, lstat: typeof fs.promises.lstat, mkdir: typeof fs.promises.mkdir, open: typeof fs.promises.open, readdir: typeof fs.promises.readdir, readlink: typeof fs.promises.readlink, rename: typeof fs.promises.rename, rm: typeof fs.promises.rm, rmdir: typeof fs.promises.rmdir, stat: typeof fs.promises.stat, symlink: typeof fs.promises.symlink, unlink: typeof fs.promises.unlink; +export declare const IS_WINDOWS: boolean; +export declare const UV_FS_O_EXLOCK = 268435456; +export declare const READONLY: number; +export declare function exists(fsPath: string): Promise<boolean>; +export declare function isDirectory(fsPath: string, useStat?: boolean): Promise<boolean>; +/** + * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: + * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). + */ +export declare function isRooted(p: string): boolean; +/** + * Best effort attempt to determine whether a file exists and is executable. + * @param filePath file path to check + * @param extensions additional file extensions to try + * @return if file exists and is executable, returns the file path. otherwise empty string. + */ +export declare function tryGetExecutablePath(filePath: string, extensions: string[]): Promise<string>; +export declare function getCmdPath(): string; |
