fix: uppercase DESCRIPT.ION file was not excluded from the list as its lowercase version #1178
Massimo Melina committed
Mar 4, 2026 at 15:07 UTC
f4f0b2e975bf5db68cc94947f2beda4f92cda7ef
2 files changed
+3
-3
src/comments.ts
+1
-1
@@ -8,7 +8,7 @@ import iconv from 'iconv-lite'
8
import { unlink } from 'node:fs/promises'
9
10
export const DESCRIPT_ION = 'descript.ion'
11
-const DESCRIPT_ION_ALT = 'DESCRIPT.ION'
11
+export const DESCRIPT_ION_ALT = 'DESCRIPT.ION'
12
const commentsStorage = defineConfig<'' | 'attr' | 'attr+ion'>(CFG.comments_storage, '',
13
v => ['', 'attr+ion'].includes(v)) // compiled tell us if we are using descript.ion
14
defineConfig('descript_ion', true, (v, more) => { // legacy: convert previous setting
src/vfs.ts
+2
-2
@@ -16,7 +16,7 @@ import { ctxBelongsTo } from './perm'
16
import { getCurrentUsername } from './auth'
17
import { Stats } from 'node:fs'
18
import fswin from 'fswin'
19
-import { DESCRIPT_ION, usingDescriptIon } from './comments'
19
+import { DESCRIPT_ION, DESCRIPT_ION_ALT, usingDescriptIon } from './comments'
20
import { walkDir } from './walkDir'
21
import { Readable } from 'node:stream'
22
@@ -373,7 +373,7 @@ export async function* walkNode(parent: VfsNode, {
373
stream.push(null)
374
return null
375
}
376
- if (usingDescriptIon() && entry.name === DESCRIPT_ION)
376
+ if (usingDescriptIon() && (entry.name === DESCRIPT_ION || entry.name === DESCRIPT_ION_ALT))
377
return
378
const {path} = entry // this path is not the original deprecated property: we are overwriting/reusing it
379
const isFolder = entry.isDirectory()