Upgrade stdlib to fix walk and symlinks
This commit is contained in:
parent
b47c07da74
commit
1a3acceaf0
@ -4,7 +4,7 @@ import { readAll } from "../deps.ts";
|
||||
import { FileMeta } from "../types.ts";
|
||||
import { SpacePrimitives } from "./space_primitives.ts";
|
||||
import { mime } from "https://deno.land/x/mimetypes@v1.0.0/mod.ts";
|
||||
import { walk } from "https://deno.land/std@0.165.0/fs/walk.ts";
|
||||
import { walk } from "https://deno.land/std@0.198.0/fs/walk.ts";
|
||||
|
||||
function lookupContentType(path: string): string {
|
||||
return mime.getType(path) || "application/octet-stream";
|
||||
@ -146,6 +146,7 @@ export class DiskSpacePrimitives implements SpacePrimitives {
|
||||
const fullPath = file.path;
|
||||
try {
|
||||
const s = await Deno.stat(fullPath);
|
||||
// console.log(fullPath, s.isSymlink);
|
||||
const name = fullPath.substring(this.rootPath.length + 1);
|
||||
if (excludedFiles.includes(name)) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user