bmc64 icon indicating copy to clipboard operation
bmc64 copied to clipboard

Directories littered with invisible files

Open k6lcm opened this issue 1 year ago • 2 comments

I have run across an issue when manipulating the SD card for my BMC64 build in macOS. Whenever I copy files in the Mac Finder to the various directories on my BMC64 uSD card, two files appear in the directory listing when viewing it on the BMC64. For example, if I copy gianna_sisters.d64 I will also get a ghost file called ._gianna_sisters.d64. Note that these file names begin with a dot and an underscore.

I have tried viewing invisible files on my Mac (command-shift-period) but they neither appear using that method nor performing an ls on the uSD directory in the Mac Terminal command line. I can see other normal invisible macOS files like .Trashes but I can't see these dot underscore files. It seems like only the BMC64 system is seeing them. Loading and running these files yields an error.

k6lcm avatar Oct 31 '23 06:10 k6lcm

This is something MacOS does and BMC64 does not filter them like your OS does. You can clean your directories using a program called 'dot_clean'. See stackexchange post:

https://apple.stackexchange.com/questions/14980/why-are-dot-underscore-files-created-and-how-can-i-avoid-them

I can add a filter I suppose to hide them like the OSs do.

On Tue, Oct 31, 2023 at 2:46 AM Levi @.***> wrote:

I have run across an issue when manipulating the SD card for my BMC64 build in macOS. Whenever I copy files in the Mac Finder to the various directories on my BMC64 uSD card, two files appear in the directory listing when viewing it on the BMC64. For example, if I copy gianna_sisters.d64 I will also get a ghost file called ._gianna_sisters.d64. Note that these file names begin with a dot and an underscore.

I have tried viewing invisible files on my Mac (command-shift-period) but they neither appear using that method nor performing an ls on the uSD directory in the Mac Terminal command line. I can see other normal invisible macOS files like .Trashes but I can't see these dot underscore files. It seems like only the BMC64 system is seeing them. Loading and running these files yields an error.

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKFZ7WMP5UEPJCC42M3YCCNDTAVCNFSM6AAAAAA6XFQJVCVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3DSNZVGUYTCNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Randy Rossi

  • "There are only two things that are hard about computer science; Naming things, Cache Invalidation, and Off-by-one errors."

randyrossi avatar Oct 31 '23 11:10 randyrossi

Thanks @randyrossi! That makes sense. I had heard about .files but not ._files. Thanks for the reference. Not a huge deal but a filter would make things easier for us macOS users. Meanwhile, I will check out 'dot_clean'.

Thanks for all of your work on these projects. I am loving the vicii-kawari on my real hardware.

k6lcm avatar Oct 31 '23 16:10 k6lcm