Interface IEnvironment

Index

Properties

Methods

Properties

public arguments: Array<string>

public newLine: string

public standardOut: ITextWriter

Methods

public currentDirectory(): string

Returns

string

public deleteFile(path: string)

Parameters

  • path: string

public directoryExists(path: string): boolean

Parameters

  • path: string

Returns

boolean

public fileExists(path: string): boolean

Parameters

  • path: string

Returns

boolean

public listFiles(path: string, re?: RegExp, options?: { recursive?: boolean; }): Array<string>

Parameters

  • path: string
  • re?: RegExp optional
  • options?: { recursive?: boolean; } optional

Returns

Array<string>

public readFile(path: string, codepage: number): FileInformation

Parameters

  • path: string
  • codepage: number

Returns

FileInformation

public supportsCodePage(): boolean

Returns

boolean

public writeFile(path: string, contents: string, writeByteOrderMark: boolean)

Parameters

  • path: string
  • contents: string
  • writeByteOrderMark: boolean