• Luci@lemmy.ca
      link
      fedilink
      English
      arrow-up
      32
      ·
      2 months ago

      It’s a folder that macOS will leave on usb sticks with meta data and stuff I think

      Idk I delete it on sight.

      • Ging@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 months ago

        Very cool, I’m still kinda confused why .DS_Store is the identifier for such a folder but still cool Thanks

        • bitwolf@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          1
          ·
          2 months ago

          On Unix and Unix-like systems when a file or directory name starts with a . its hidden by default.

          This convention is maintained in the UI for MacOS so you don’t see the .DS_Store directory unless you ask to show hidden files.

      • AnUnusualRelic@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 months ago

        On any non Mac native filesystem I think. Anything that MacOS can read but isn’t the original filesystem (it used to be HFS, a long time ago, I have no idea what it is nowadays) will be peppered with those metadata files, disk, floppy, thumb drive, whatever.

  • FunctionallyLiterate@lemmy.ca
    link
    fedilink
    arrow-up
    47
    arrow-down
    2
    ·
    edit-2
    2 months ago

    Meh, that’s nothing - just look at the multitude of directories forced upon any storage device you plug into something running Android.

  • magnetosphere@fedia.io
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    2 months ago

    I’m such a Mac user that I don’t even get it. I am simultaneously laughing at myself and embarrassed.

      • Samskara@sh.itjust.works
        link
        fedilink
        arrow-up
        12
        arrow-down
        1
        ·
        2 months ago

        macOS only does this on network shares or external storage that’s formatted in neither HFS+ nor APFS, Apple‘s file system formats.

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          Huh? I’ve seen it on the git untracked files list on APFS drives, I’m pretty sure.

          In fact I know some companies just add it to .gitignore for that reason

          • Samskara@sh.itjust.works
            link
            fedilink
            arrow-up
            12
            ·
            2 months ago

            ZIP files created with macOS‘ file manager Finder can also contain DS_Store files.

            Yes, the idea is to support macOS features on non native file systems.

            If you want to look it up, some of this goes back to HFS, a file system with a resource fork and data fork. It allows you to do pretty cool stuff.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 months ago

      Depending on how you interact with your computer, and when you started being a Mac user, I’m not surprised.

      Starting at macOS 10.12 16A238m, Finder will not display .DS_Store files (even if you ran defaults write com.apple.finder AppleShowAllFiles YES in Terminal to show hidden system files).

      Wikipedia

      • IO 😇@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        2
        ·
        2 months ago

        Apple treats it’s users like children, i would feel so not respected. Yeah you bought the machine but don’t worry your pretty little head with these confusing files

    • Psythik@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      2 months ago

      That’s cause they’re hidden from you. The file does not show up on MacOS, even if you enable showing hidden files.

    • vithigar@lemmy.ca
      link
      fedilink
      arrow-up
      6
      ·
      2 months ago

      What drives me batty about thumbs.db is that on a modern high end machine with an nvme drive it’s not meaningfully faster then just regenerating thumbnails on demand every time, and in fact can be slower under some circumstances. Yet there’s no “I don’t need this turn it off” option.

        • vithigar@lemmy.ca
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          2 months ago

          For whatever insane windows-y reason, having a thumbs.db file on a network share is one of those slower scenarios for me. Which is odd because you’d expect that to be the kind of situation where it’s actually useful.

    • Hawke@lemmy.world
      link
      fedilink
      arrow-up
      57
      ·
      2 months ago

      Seriously fuck thumbs.db anywhere it can be found.

      THIS IS WHY NTFS HAS ALTERNATE DATA STREAMS, USE THEM YOU FUCKERS YOU CREATED IT.

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 months ago

          Yes well you’re not wrong.

          Although I use ext4.

          For Linux, the equivalent is Extended Attributes, although they come with significant limitations.

      • thermal_shock@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        2 months ago

        Easiest fix, change the folder view to another, like “list”, then back and it won’t be locked anymore. Might take a second or two, but will unlock.

          • thermal_shock@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            edit-2
            2 months ago

            You mean list? Click these icons and change the folder view from icons to something else, like “list” or “details”, then thumbs.db can be deleted without windows bitching.

            You can also change under View menu at the top.

            • Hawke@lemmy.world
              link
              fedilink
              arrow-up
              4
              ·
              2 months ago

              No I mean “locked”.

              I don’t care about windows bitching about these files, I am offended that it shits them (and “desktop.ini”) all over everywhere.

              It’s a total hack, and pathetic for a company the size of Microsoft.

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          30
          ·
          edit-2
          2 months ago

          Alternate data streams look like normal files but with an appended identifier.

          For example test.txt:stream1 is an alternate data stream of test.txt. Move or copy the file and the ADS goes with it.

          They can be created like other files (“echo > test.txt:stream1”)

          You can see them with “dir /r” at the command line.

          You can even have an alternate data stream with no corresponding file. In my opinion this is what thumbs.db should have been.

            • Hawke@lemmy.world
              link
              fedilink
              arrow-up
              11
              ·
              edit-2
              2 months ago

              It works, and yes only on NTFS… but many applications may not be able to open these “files”.

              It’s actually sort of a weird historical thing, goes back to the roots of Windows NT in VMS and also compatibility with Mac OS (classic) and its “resource forks”

            • ITGuyLevi@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              2 months ago

              Back 20+ years ago I used alternate data streams to his my collection of files (the ones you find online as a teenager) behind a text file. You can shove anything you want (I think) in them, even including extensions to make sure it opened in the right program (i.e. test.txt:malware.msi).

  • buttnugget@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 months ago

    It’s a good thing I never created OS file systems because I would have balls.chin files everywhere. Well, the truth is that someone would have forked it just to change that, then I would have raged and abandoned the project, then a competent maintainer would have grabbed it. What a world.