Search code examples
flutterandroid-studioide

IDE creates new files with "_" in the beginning of all files


Can someone explain whats going on, every time I create a new file the IDE is creating the file with the same name but adding underscore "_" in the beginning. I don't even know if the problem is in the AndroidStudio or in the Flutter. I had no problems before.

Image from the project structure. enter image description here

Image inside some new file with underscore: enter image description here


Solution

  • Those are files stored by macOS when writing to external drives that aren't capable of storing extended attributes in the way AFPS (or formerly HFS+) store them. Those files contain these extended attributes instead. On AFPS you could normally access them with xattrs.

    References: https://developer.apple.com/support/downloads/Apple-File-System-Reference.pdf https://eclecticlight.co/2020/10/24/theres-more-to-files-than-data-extended-attributes/