microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.6.3

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/extension/appcenter/lib/codepush-node-sdk/dist/utils/file-utils.d.ts

26lines · modecode

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