Add remote fs API
Summary: Changelog: Expose Flipper Server FS access to Flipper plugins Reviewed By: lblasa Differential Revision: D32883144 fbshipit-source-id: 47637b61849ef60a2d8fe91a0a28d2a358e0b8c4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a87b99cd3d
commit
0e785fb18d
@@ -132,6 +132,18 @@ export type IOSDeviceParams = {
|
||||
};
|
||||
|
||||
export type FlipperServerCommands = {
|
||||
'node-api-fs-access': (path: string, mode?: number) => Promise<void>;
|
||||
'node-api-fs-pathExists': (path: string, mode?: number) => Promise<boolean>;
|
||||
'node-api-fs-unlink': (path: string) => Promise<void>;
|
||||
'node-api-fs-mkdir': (
|
||||
path: string,
|
||||
options?: {recursive?: boolean} & MkdirOptions,
|
||||
) => Promise<string | void>;
|
||||
'node-api-fs-copyFile': (
|
||||
src: string,
|
||||
dest: string,
|
||||
flags?: number,
|
||||
) => Promise<void>;
|
||||
/**
|
||||
* @throws ExecError
|
||||
*/
|
||||
@@ -310,6 +322,10 @@ export type BufferEncoding =
|
||||
| 'binary'
|
||||
| 'hex';
|
||||
|
||||
export interface MkdirOptions {
|
||||
mode?: string | number;
|
||||
}
|
||||
|
||||
export type FlipperServerConfig = {
|
||||
gatekeepers: Record<string, boolean>;
|
||||
env: Partial<Record<ENVIRONMENT_VARIABLES, string>>;
|
||||
|
||||
Reference in New Issue
Block a user