streamich/memfs

Support for case sensitivity settings

开放

#533 创建于 2020年5月6日

 (8 条评论) (1 个反应) (0 位负责人)TypeScript (147 个派生)github user discovery
good first issuehelp wanted

仓库指标

星标
 (2,062 个星标)
PR 合并指标
 (平均合并 4天 8小时) (30 天内合并 8 个 PR)

描述

Hi! As you probably know, there are 2 options for case sensitivity:

  • Windows use case sensitive paths,
  • other systems like macOS or Linux use case insensitive paths

I checked how memfs behave and it seems that it uses case sensitive approach:

const { fs } = require('memfs');

fs.writeFileSync('/my/Case/sensitive/Path.txt', 'content');

console.log(fs.readFileSync('/my/case/sensitive/path.txt'));
// logs undefined
// if I would use native fs on macOS or Linux, I would get "content" logged
// so it's kind of inconsistency between memfs and fs

It would be nice if:

  1. there would be an option to configure it
  2. the default behavior would be to use system settings

贡献者指南