Methods
copyDirectory
- copyDirectory(source: string, destination: string): Promise<void>
-
Parameters
-
source: string
-
destination: string
Returns Promise<void>
ensureDirectoryExists
- ensureDirectoryExists(filename: string): Promise<void>
-
Parameters
Returns Promise<void>
fileExists
- fileExists(filename: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
mkDir
- mkDir(directory: string): Promise<void>
-
Parameters
Returns Promise<void>
readFile
- readFile(filename: string, encoding?: string): Promise<string>
-
Parameters
-
filename: string
-
Default value encoding: string = "utf8"
Returns Promise<string>
readStdin
- readStdin(): Promise<string>
writeFile
- writeFile(data: string, filename: string, encoding?: string): Promise<void>
-
Parameters
-
data: string
-
filename: string
-
Default value encoding: string = "utf8"
Returns Promise<void>
Copies a directory recursively from source to destination