1
0

Upgrade stdlib to fix walk and symlinks

This commit is contained in:
Zef Hemel 2023-08-15 08:26:25 +02:00
parent b47c07da74
commit 1a3acceaf0

View File

@ -4,7 +4,7 @@ import { readAll } from "../deps.ts";
import { FileMeta } from "../types.ts"; import { FileMeta } from "../types.ts";
import { SpacePrimitives } from "./space_primitives.ts"; import { SpacePrimitives } from "./space_primitives.ts";
import { mime } from "https://deno.land/x/mimetypes@v1.0.0/mod.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 { function lookupContentType(path: string): string {
return mime.getType(path) || "application/octet-stream"; return mime.getType(path) || "application/octet-stream";
@ -146,6 +146,7 @@ export class DiskSpacePrimitives implements SpacePrimitives {
const fullPath = file.path; const fullPath = file.path;
try { try {
const s = await Deno.stat(fullPath); const s = await Deno.stat(fullPath);
// console.log(fullPath, s.isSymlink);
const name = fullPath.substring(this.rootPath.length + 1); const name = fullPath.substring(this.rootPath.length + 1);
if (excludedFiles.includes(name)) { if (excludedFiles.includes(name)) {
continue; continue;