randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
474 stars 56 forks source link

Directories littered with invisible files #251

Open k6lcm opened 8 months ago

k6lcm commented 8 months ago

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.

randyrossi commented 8 months ago

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

k6lcm commented 8 months ago

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.