Pycharm is confusing file for a folder

I created a folder called New Website, copied Foundation CSS files into it which created a CSS and JS folder when unzipped.  Inside the CSS folder are three files, app.css, foundation.css, and foundation.min.

When I create a new Project using the folder New Website that contains the foundation folders. PyCharm is misreading the foundation.css file as a folder inside the folder CSS. The foundation.min inside CSS is displayed as a child file inside the phantom foundation.css folder.  See picture below...

Folder structure should be:

CSS
    - apps.css
    - foundation.css
    - foundation.min

NOT:

CSS
    - apps.css
     FOUNDATION.CSS
        - foundation.min
  

Is this a bug, or is something else going on that I am not understanding?  Why does Pycharm display foundation.css as a folder?

 

FYI: When I double-click foundation.css, it loads as a css file in Pycharm. 

 

0
2 comments

It's not a bug. PyCharm groups files with same name but different extensions - this might be useful to hide the generated files from view. Nesting can be configured in File Nesting dialog (https://www.jetbrains.com/help/pycharm/file-nesting-dialog.html) that is shown on choosing File nesting... from the Project view options popup (gear icon): you can remove <name>.css > <name>.min.css mapping from the list, or disable Show files with the same names as nested according to the rules below option

 

1
Avatar
Permanently deleted user

Thank you for posting this...

1

Please sign in to leave a comment.