Skip to content

Commit 3b4510f

Browse files
Toby MillerNathanWalker
Toby Miller
andauthored
fix(file-system): Resolve paths before testing for existence (#59)
Co-authored-by: Nathan Walker <[email protected]>
1 parent 3f506d8 commit 3b4510f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/wrappers/file-system.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const mkdir = util.promisify(fs.mkdir);
99

1010
export class FileSystem {
1111
public exists(filePath: string): boolean {
12-
return fs.existsSync(filePath);
12+
return fs.existsSync(path.resolve(filePath));
1313
}
1414

1515
public extractZip(pathToZip: string, outputDir: string): Promise<void> {

0 commit comments

Comments
 (0)