aboutsummaryrefslogtreecommitdiff
path: root/lib/system.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system.js')
-rw-r--r--lib/system.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/system.js b/lib/system.js
index 9ef713c8..1bfe1bfb 100644
--- a/lib/system.js
+++ b/lib/system.js
@@ -127,21 +127,22 @@ function System (faker) {
};
/**
- * not yet implemented
+ * returns directory path
*
* @method faker.system.directoryPath
*/
this.directoryPath = function () {
- // TODO
+ var paths = faker.definitions.system.directoryPaths
+ return faker.random.arrayElement(paths);
};
/**
- * not yet implemented
+ * returns file path
*
* @method faker.system.filePath
*/
this.filePath = function () {
- // TODO
+ return faker.fake("{{system.directoryPath}}/{{system.fileName}}");
};
/**