edex-ui icon indicating copy to clipboard operation
edex-ui copied to clipboard

Folder names ending with file extension treated as files

Open a2br opened this issue 4 years ago • 1 comments

Technical information

Using version:

  • [x] master (running from GitHub-published source code, currently v2.2.8-pre)
  • [x] latest (latest release, currently v2.2.7)

Running on:

  • [ ] Linux
  • [ ] Windows
  • [x] macOS

How comfortable you are with your system and/or IT in general:

  • [ ] I'm kind of lost, honestly
  • [x] I know what's up, I could help you run some commands or checks
  • [ ] My machine is fully under my control, tell me what you need
  • [ ] I attended Defcon last year

Problem

Folders ending with .js have JS file icon instead of folder icon. See below. Screen Shot 2021-08-17 at 21 35 10

a2br avatar Aug 17 '21 19:08 a2br

Thanks for the report!

Looks like we would need to change this logic:

https://github.com/GitSquared/edex-ui/blob/39c3f2d53735b2b56fd80492543ec0bba3592e0e/src/classes/filesystem.class.js#L431-L446

GitSquared avatar Aug 21 '21 10:08 GitSquared