fix: path handling inconsistencies (#2482)

This commit is contained in:
Marvin Hagemeister
2024-06-03 15:03:48 +02:00
committed by GitHub
parent 9347b84cba
commit 2fb8606e9e
7 changed files with 49 additions and 17 deletions
+2
View File
@@ -6,6 +6,7 @@ export interface FreshFile {
}
export interface FsAdapter {
cwd(): string;
walk(
root: string | URL,
options?: WalkOptions,
@@ -17,6 +18,7 @@ export interface FsAdapter {
export const fsAdapter: FsAdapter = {
walk,
cwd: Deno.cwd,
async isDirectory(path) {
try {
const stat = await Deno.stat(path);