aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPiotr Kuczynski <[email protected]>2022-03-29 18:16:41 +0200
committerGitHub <[email protected]>2022-03-29 18:16:41 +0200
commit2532eb9f5a6f73bbc1786ec91952f838d98fd72a (patch)
tree3534457daa59ea1646a1f1bb1577006309d6b369 /src
parent1bb0f25d058e6a9f7c1331252f33c80fa3039f61 (diff)
downloadfaker-2532eb9f5a6f73bbc1786ec91952f838d98fd72a.tar.xz
faker-2532eb9f5a6f73bbc1786ec91952f838d98fd72a.zip
fix: remove doubled extension in system.filePath (#300)
Diffstat (limited to 'src')
-rw-r--r--src/system.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/system.ts b/src/system.ts
index c6532ed2..c5b052c0 100644
--- a/src/system.ts
+++ b/src/system.ts
@@ -175,10 +175,11 @@ export class System {
* Returns a file path.
*
* @example
- * faker.system.filePath() // '/usr/local/src/money.rmp.dotx'
+ * faker.system.filePath() // '/usr/local/src/money.dotx'
*/
+ // TODO @prisis 2022-01-25: add a parameter to have the possibility to have one or two ext on file.
filePath(): string {
- return `${this.faker.system.directoryPath()}/${this.faker.system.fileName()}.${this.faker.system.fileExt()}`;
+ return `${this.directoryPath()}/${this.fileName()}`;
}
/**