This module encapsulates general file system related functions

Source:

Methods

(inner) assertAccessible()

Given a file or folder, checks that it exists and can be read. Throws an error otherwise.

Source:

(inner) findProjectRoot() → {Q.Promise.<string>}

This function searches (upwards) for a directory with a .git folder, starting from the CWD!

Source:
Returns:

promise to return the full path of the project

Type
Q.Promise.<string>

(inner) getSkeletonFile(skeleton) → {Promise.<string>}

Parameters:
Name Type Description
skeleton string
Source:
Returns:
Type
Promise.<string>

(inner) getSkeletonPath() → {string}

Source:
Returns:
Type
string

(inner) installExecutable(destFilePath, fileContents, permsopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
destFilePath string
fileContents *
perms string <optional>
Source:
Returns:
Type
Q.Promise

(inner) loadCertificateFiles(privateKey, certificate, chainopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
privateKey string
certificate string
chain string <optional>
Source:
Returns:
Type
Q.Promise

(inner) parent(somePath) → {string}

Parameters:
Name Type Description
somePath string
Source:
Returns:
Type
string