default: {
archive: (
target: string,
directory: { C: string; path: string },
) => Promise<void>;
convert: (
location: string,
file: { name: string; target: string },
callback?: (data: { data?: string; error?: string }) => void,
param?: { isResult: boolean },
) => Promise<{ brep?: string; glb: string; name: string }[]>;
copyDirectory: (origin: string, destination: string) => Promise<void>;
copyFile: (
origin: { file: string; path: string },
destination: { file: string; path: string },
) => Promise<void>;
createPath: (location: string) => Promise<void>;
decrypt: (hash: { content: string; iv: string }) => Promise<string>;
encrypt: (text: string) => Promise<{ content: string; iv: string }>;
listDirectories: (location: string) => Promise<string[]>;
listFiles: (location: string) => Promise<Dirent[]>;
readFile: (file: string, options?: any) => Promise<Buffer>;
readJSONFile: (file: string) => Promise<any>;
readStream: (file: string) => ReadStream;
removeDirectory: (dir: string) => Promise<void>;
removeFile: (file: string) => Promise<void>;
splitStep: (location: string, fileIn: string) => Promise<string[]>;
toPosix: (str: string) => string;
unarchive: (
source: string,
directory: { C: string; path: string },
) => Promise<void>;
writeFile: (
location: string,
name: string,
content: string | Buffer,
) => Promise<void>;
writeStream: (file: string) => WriteStream;
} = ...
Type declaration
archive: (target: string, directory: { C: string; path: string }) => Promise<void>
convert: (
location: string,
file: { name: string; target: string },
callback?: (data: { data?: string; error?: string }) => void,
param?: { isResult: boolean },
) => Promise<{ brep?: string; glb: string; name: string }[]>
copyDirectory: (origin: string, destination: string) => Promise<void>
copyFile: (
origin: { file: string; path: string },
destination: { file: string; path: string },
) => Promise<void>
createPath: (location: string) => Promise<void>
decrypt: (hash: { content: string; iv: string }) => Promise<string>
encrypt: (text: string) => Promise<{ content: string; iv: string }>
listDirectories: (location: string) => Promise<string[]>
listFiles: (location: string) => Promise<Dirent[]>
readFile: (file: string, options?: any) => Promise<Buffer>
readJSONFile: (file: string) => Promise<any>
readStream: (file: string) => ReadStream
removeDirectory: (dir: string) => Promise<void>
removeFile: (file: string) => Promise<void>
splitStep: (location: string, fileIn: string) => Promise<string[]>
toPosix: (str: string) => string
unarchive: (source: string, directory: { C: string; path: string }) => Promise<void>
writeFile: (location: string, name: string, content: string | Buffer) => Promise<void>
writeStream: (file: string) => WriteStream