From 2532eb9f5a6f73bbc1786ec91952f838d98fd72a Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Tue, 29 Mar 2022 18:16:41 +0200 Subject: fix: remove doubled extension in system.filePath (#300) --- src/system.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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()}`; } /** -- cgit v1.2.3