fix: path handling inconsistencies (#2482)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user