1 2 3 4 5 6 7 8 9 10 11 12 |
// Copyright 2018-2025 the Deno authors. MIT license.
import type { DirEntry } from "./unstable_types.ts";
export function toDirEntry(s: import("node:fs").Dirent): DirEntry {
return {
name: s.name,
isFile: s.isFile(),
isDirectory: s.isDirectory(),
isSymlink: s.isSymbolicLink(),
};
}
|