diff --git a/common/cloudfunc.js b/common/cloudfunc.js index 44020303..d30460f5 100644 --- a/common/cloudfunc.js +++ b/common/cloudfunc.js @@ -244,7 +244,7 @@ function getSize(file) { type, } = file; - if (type === 'directory') + if (/^directory$/.test(type)) return '<dir>'; if (/link/.test(type))