Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 17:44 26 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Some ideas from the Mac

     Page 2 of 2    
Author Message
halldave

Senior Member

Joined: 04/05/2014
Location: Australia
Posts: 121
Posted: 06:05am 07 Jul 2020
Copy link to clipboard 
Print this post

Ok

when you copy files onto an SD card using a Mac there is a resource file created for every file, it is hidden and has the same file name as the original file with ._ prefixed

eg.    Program.bas     also has ._Program.bas

this hidden file contains thumbnails etc and other attributes.

However that said, this does not impact anything on the CMM2.

The FILES and LIST FILES command work perfectly and ignore the hidden files


if you use the following

f$ = DIR$("*.*", FILE)
DO WHILE f$ <> ""
    PRINT f$
    f$ = DIR$()
LOOP

You will see Program.bas and ._Program.bas

you can ignore the files

f$ = DIR$("*.*", FILE)
DO WHILE f$ <> ""
    IF LEFT$(f$,2)<>"._" THEN
       PRINT f$
    ENDIF
    f$ = DIR$()
LOOP

if it really became an issue then you could remove then

f$ = DIR$("*.*", FILE)
DO WHILE f$ <> ""
    IF LEFT$(f$,2)<>"._" THEN
       PRINT f$
    ELSE
       KILL f$
    ENDIF
    f$ = DIR$()
LOOP


Otherwise I can't see it as an issue really, the same thing happens with the recycle bins stored on the SD cards, they are in hidden directories and unless you really want to do something with them, just ignore them

regards

David
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024