formatting
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import fs from 'fs/promises';
|
||||
|
||||
// lstat is used because this is also used to check if a symlink file exists
|
||||
export const fileExists = (filePath: string) => fs.lstat(filePath).then(() => true, () => false);
|
||||
export const fileExists = (filePath: string) =>
|
||||
fs.lstat(filePath).then(
|
||||
() => true,
|
||||
() => false
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user