UNPKG

kura

Version:

The FileSystem API abstraction library.

24 lines 1.73 kB
import { DirectoryEntryAsync } from "./DirectoryEntryAsync"; import { FileEntryAsync } from "./FileEntryAsync"; import { Entry, ErrorCallback } from "./filesystem"; import { FileSystemAsync } from "./FileSystemAsync"; import { FileSystemObject } from "./FileSystemObject"; export declare function getParentPath(fullPath: string): string; export declare function createFileSystemObject(fullPath: string, isFile: boolean): FileSystemObject; export declare function getName(fullPath: string): string; export declare function getExtension(fullPath: string): string; export declare function getBaseName(fullPath: string): string; export declare function createEntry(fileSystemAsync: FileSystemAsync, entry: Entry): DirectoryEntryAsync | FileEntryAsync; export declare function resolveToFullPath(cwdFullPath: string, path: string): string; export declare function normalizePath(fullPath: string): string; export declare function blobToFile(fileBits: BlobPart[], name: string, lastModified: number, type?: string): File; export declare function dataUrlToBase64(dataUrl: string): string; export declare function createEmptyFile(name: string): File; export declare function getMemorySize(content: Blob | BufferSource | string): number; export declare function getSize(content: Blob | BufferSource | string): number; export declare function getTextSize(text: string): number; export declare function isIllegalFileName(name: string): boolean; export declare function isIllegalPath(fullPath: string, index: boolean): boolean; export declare function isIllegalObject(obj: FileSystemObject, index: boolean): boolean; export declare function onError(err: any, errorCallback?: ErrorCallback): void; //# sourceMappingURL=FileSystemUtil.d.ts.map