Added ensureDirSync

This commit is contained in:
Chris Watson
2016-03-30 20:47:41 -07:00
parent bf4ecf5b68
commit a44332a250
+2 -1
View File
@@ -166,7 +166,8 @@ declare module "fs-extra-promise" {
export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher;
export function exists(path: string, callback?: (exists: boolean) => void): void;
export function existsSync(path: string): boolean;
export function ensureDir(path: string, cb: (err: Error) => void): void;
export function ensureDir(path: string, cb: (err: Error) => void): void;
export function ensureDirSync(path: string): void;
export interface OpenOptions {
encoding?: string;