We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69e9cef commit 4c04c92Copy full SHA for 4c04c92
tests/helpers/io.ts
@@ -26,8 +26,6 @@ export const calculateFileSize = async (
26
export const isFile = async (
27
filePath: string,
28
): Promise<boolean> => {
29
- const file = await Deno.open(filePath, { read: true });
30
- const fileInfo = await Deno.fstat(file.rid);
31
- Deno.close(file.rid);
+ const fileInfo = await Deno.stat(filePath);
32
return fileInfo.isFile;
33
};
0 commit comments