improve memory.toFs(Sync)
This commit is contained in:
38
dist/smartfile.fs.d.ts
vendored
38
dist/smartfile.fs.d.ts
vendored
@ -1,4 +1,24 @@
|
||||
import "typings-global";
|
||||
/**
|
||||
*
|
||||
* @param filePath
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export declare let fileExistsSync: (filePath: any) => boolean;
|
||||
/**
|
||||
*
|
||||
* @param filePath
|
||||
* @returns {any}
|
||||
*/
|
||||
export declare let fileExists: (filePath: any) => any;
|
||||
/**
|
||||
* Checks if given path points to an existing directory
|
||||
*/
|
||||
export declare let isDirectory: (pathArg: any) => boolean;
|
||||
/**
|
||||
* Checks if a given path points to an existing file
|
||||
*/
|
||||
export declare let isFile: (pathArg: any) => boolean;
|
||||
/**
|
||||
* copies a file from A to B on the local disk
|
||||
*/
|
||||
@ -15,10 +35,6 @@ export declare let remove: (pathArg: string) => any;
|
||||
* removes a file SYNCHRONOUSLY from local disk
|
||||
*/
|
||||
export declare let removeSync: (pathArg: string) => boolean;
|
||||
export declare let toFS: (options: {
|
||||
from: string;
|
||||
toPath: string;
|
||||
}, cb?: any) => void;
|
||||
/**
|
||||
*
|
||||
* @param filePathArg
|
||||
@ -60,17 +76,3 @@ export declare let listFolders: (pathArg: string) => any;
|
||||
* lists Folders SYNCHRONOUSLY in a directory on local disk
|
||||
*/
|
||||
export declare let listFoldersSync: (pathArg: any) => any;
|
||||
/**
|
||||
*
|
||||
* @param filePath
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export declare let fileExistsSync: (filePath: any) => boolean;
|
||||
/**
|
||||
*
|
||||
* @param filePath
|
||||
* @returns {any}
|
||||
*/
|
||||
export declare let fileExists: (filePath: any) => any;
|
||||
export declare let isDirectory: (pathArg: any) => boolean;
|
||||
export declare let isFile: (pathArg: any) => boolean;
|
||||
|
82
dist/smartfile.fs.js
vendored
82
dist/smartfile.fs.js
vendored
File diff suppressed because one or more lines are too long
10
dist/smartfile.memory.d.ts
vendored
10
dist/smartfile.memory.d.ts
vendored
@ -45,11 +45,5 @@ export declare let toStringSync: (fileArg: plugins.vinyl) => string;
|
||||
* @param fileNameArg
|
||||
* @param fileBaseArg
|
||||
*/
|
||||
export declare let toFs: (fileArg: any, optionsArg: {
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
}) => any;
|
||||
export declare let toFsSync: (fileArg: any, optionsArg: {
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
}) => void;
|
||||
export declare let toFs: (fileContentArg: string | plugins.vinyl, filePathArg: any) => any;
|
||||
export declare let toFsSync: (fileArg: any, filePathArg: string) => void;
|
||||
|
30
dist/smartfile.memory.js
vendored
30
dist/smartfile.memory.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user