Function
Static Public Summary | ||
public |
bashFileSearch(pattern: string, basedir: string): Observable<SearchResult> Note that Bash version 4.3 (at minimum) is required. |
|
public |
buildDirectories(basePath: string, directoryList: Array<string>): Observable<string> Builds a set of directories within a base path. |
|
public |
buildFileSet(fileSet: FileSet): Observable<string> Build a set of test files. |
|
public |
buildFiles(basePath: string, fileList: Array<string>): Observable<string> Only simple content is written to the file. |
|
public |
buildSymLinks(basePath: string, symLinkList: Array<Array<string>>): Observable<string> Builds a set of symbolic links within a base path. |
|
public |
cleanPath(basePath: string): Observable<string> Removes all files from a path. |
|
public |
unixStylePath(path: string): string Normalizes a path to use forward (Unix-style) slashes. |
Static Public
public bashFileSearch(pattern: string, basedir: string): Observable<SearchResult> source
import {bashFileSearch} from 'test-files-rx/src/bash-file-search.js'
Note that Bash version 4.3 (at minimum) is required. This version does not follow symlinks. Also, since OSX by default has an older version of bash, the function assumes that the "homebrew install bash" was used to install bash into "/usr/local/bin/bash".
public buildDirectories(basePath: string, directoryList: Array<string>): Observable<string> source
import {buildDirectories} from 'test-files-rx/src/test-file-builder.js'
Builds a set of directories within a base path.
public buildFileSet(fileSet: FileSet): Observable<string> source
import {buildFileSet} from 'test-files-rx/src/test-file-builder.js'
Build a set of test files.
Params:
Name | Type | Attribute | Description |
fileSet | FileSet | Options describing the set of files to build. |
public buildFiles(basePath: string, fileList: Array<string>): Observable<string> source
import {buildFiles} from 'test-files-rx/src/test-file-builder.js'
Only simple content is written to the file.
public buildSymLinks(basePath: string, symLinkList: Array<Array<string>>): Observable<string> source
import {buildSymLinks} from 'test-files-rx/src/test-file-builder.js'
Builds a set of symbolic links within a base path.
public cleanPath(basePath: string): Observable<string> source
import {cleanPath} from 'test-files-rx/src/test-file-builder.js'
Removes all files from a path.
Params:
Name | Type | Attribute | Description |
basePath | string | The path to be cleaned. |