diff --git a/core/fs.ts b/core/fs.ts index 4e5a5103..7df126cd 100644 --- a/core/fs.ts +++ b/core/fs.ts @@ -12,11 +12,17 @@ export interface Options { export type Loader = (path: string) => Promise; export class Entry { + /** The name of the file/dir. */ name: string; + /** The normalized path of the file/dir. */ path: string; + /** The type of the entry. */ type: EntryType; + /** The absolute file path. */ src: string; + /** The children of the entry. */ children = new Map(); + /** Temporary flags that are cleared when a file is modified. */ flags = new Set(); #content = new Map | Data>(); #info?: Deno.FileInfo; diff --git a/core/writer.ts b/core/writer.ts index 081f6b3e..60949eab 100644 --- a/core/writer.ts +++ b/core/writer.ts @@ -112,6 +112,7 @@ export default class Writer { /** * Copy the static files in the dest folder + * Returns the static files that have been successfully copied */ async copyFiles(files: StaticFile[]): Promise { const copyFiles: StaticFile[] = [];