Add RNFetchBlobStat (#18818)

This commit is contained in:
RalfNieuwenhuizen
2017-08-11 01:34:09 +02:00
committed by Mohamed Hegazy
parent b2894b6053
commit 33377cee63

View File

@@ -378,11 +378,11 @@ export interface FS {
/**
* Show statistic data of a path.
* @param {string} path Target path
* @return {RNFetchBlobFile}
* @return {RNFetchBlobStat}
*/
stat(path: string): Promise<RNFetchBlobFile>;
stat(path: string): Promise<RNFetchBlobStat>;
lstat(path: string): Promise<RNFetchBlobFile[]>;
lstat(path: string): Promise<RNFetchBlobStat[]>;
/**
* Android only method, request media scanner to scan the file.
@@ -619,3 +619,11 @@ export interface RNFetchBlobStream {
export declare class RNFetchBlobFile {
}
export declare class RNFetchBlobStat {
lastModified: string;
size: string;
type: "directory" | "file";
path: string;
filename: string;
}