diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/system.ts | 5 |
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()}`; } /** |
