microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/appcenter/lib/codepush-node-sdk/dist/utils/file-utils.d.ts
26lines · modecode
| 1 | /// <reference types="node" /> |
| 2 | import * as fs from 'fs'; |
| 3 | export declare function fileExists(file: string): boolean; |
| 4 | export declare function isBinaryOrZip(path: string): boolean; |
| 5 | export declare function isDirectory(path: string): boolean; |
| 6 | export declare function copyFileToTmpDir(filePath: string): string; |
| 7 | export declare function generateRandomFilename(length: number): string; |
| 8 | export declare function fileDoesNotExistOrIsDirectory(path: string): boolean; |
| 9 | export declare function createEmptyTmpReleaseFolder(folderPath: string): void; |
| 10 | export declare function removeReactTmpDir(): void; |
| 11 | export declare function normalizePath(filePath: string): string; |
| 12 | export declare function walk(dir: string): Promise<string[]>; |
| 13 | export declare function stat(path: string | Buffer): Promise<fs.Stats>; |
| 14 | export declare function readdir(path: string | Buffer): Promise<string[]>; |
| 15 | export declare function readFile(filename: string): Promise<Buffer>; |
| 16 | export declare function readFile(filename: string, encoding: string): Promise<string>; |
| 17 | export declare function readFile(filename: string, options: { |
| 18 | flag?: string; |
| 19 | }): Promise<Buffer>; |
| 20 | export declare function readFile(filename: string, options?: string | { |
| 21 | encoding: string; |
| 22 | flag?: string; |
| 23 | }): Promise<string>; |
| 24 | export declare function access(path: string | Buffer, mode: number): Promise<void>; |
| 25 | export declare function rmDir(source: string, recursive?: boolean): Promise<void>; |
| 26 | export declare function mkTempDir(affixes: string): Promise<string>; |
| 27 | |