EMULAB Forum
clrmamepro [English] => clrmame Discussion => Topic started by: carbonide2 on 30 August 2024, 12:44
-
Hi,
for years I've been using the following masks with ClrMAME on macOS:
(https://i.postimg.cc/nr4Jjj40/temp-Image-UWUw-Th.avif) (https://postimages.org/)
The first line is for custom icon folders. The asterisk is needed because there is an invisible character at the end of the name that I don't know and can't type. The second line is for folders that reside on servers and contains some housekeeping values for that folder (like window position and size etc.).
I've tried a lot of different formats but I can't get it right on scanner. Would somebody please be so nice and show me how it's done?
-
unneeded masks are now regular expressions...so the following should fit your needs:
.*(\.DS_Store|Icon.+)$
so it translates to
anything at the beginning (.*)
followed by either '.DS_Store' (\.DS_Store)
or (|)
'Icon. with one extra character' (Icon.+)
which forms the end of the text ($)
The DS Store example is showed as tooltip by the way :-)
-
Is there any other forum where I can post about scanner? Anything more than a line and spam filter here gets wild.
-
Private message should work and as mentioned: Logout, maybe clean cookies, login usually works fine....
-
The above mentioned string still does not catch folder icon files. Maybe Apple changed the name but I can only see "Icon" in terminal. the '*' of ClrMAME seems to catch all the cases (0 or more characters).
Also, of 6 icon files only 4 are reported as unneeded:
2024-08-30 14:44:04 error can't determine file size of \\vmware-host\Shared Folders\MAME\CHDs\Icon
2024-08-30 14:44:04 error can't determine file size of \\vmware-host\Shared Folders\MAME\LDs\Icon
2024-08-30 14:44:04 error can't determine file size of \\vmware-host\Shared Folders\MAME\ROMs\Icon
2024-08-30 14:44:04 error can't calculate crc32 of \\vmware-host\Shared Folders\MAME\CHDs\Icon
2024-08-30 14:44:04 error can't calculate crc32 of \\vmware-host\Shared Folders\MAME\LDs\Icon
2024-08-30 14:44:04 error can't calculate crc32 of \\vmware-host\Shared Folders\MAME\ROMs\Icon
2024-08-30 14:44:04 info scan machine
2024-08-30 14:44:05 info update missing information
2024-08-30 14:44:07 info scan process end, took 16 seconds
2024-08-30 14:44:07 info fix process start
2024-08-30 14:44:07 error can't backup \\vmware-host\Shared Folders\MAME\CHDs\Icon
2024-08-30 14:44:08 error can't backup \\vmware-host\Shared Folders\MAME\LDs\Icon
2024-08-30 14:44:08 error can't backup \\vmware-host\Shared Folders\MAME\ROMs\Icon
2024-08-30 14:44:08 error can't backup \\vmware-host\Shared Folders\MAME\Extras\samples\Icon
2024-08-30 14:44:08 info fix process end, took 1 second
2024-08-30 14:44:08 info saving output and fixdat
2024-08-30 14:44:14 info 47098 of 47098 machines in selected filtered mode
2024-08-30 14:44:14 info 41195 complete, 5903 empty machines
2024-08-30 14:44:14 warning 4 unneeded files/folders
-
Can you send me one of such icon files (e.g. compressed in a zip, so that the full filename is intact).
The "can't determine file size of " and "can't calculate.." messages seems to be correct though since it first tries to read the file to check if it's something valid. Unneeded mask files are filtered out on a later stage...when they were detected as being unneeded.
However I might be able to filter out such masked files from error messages.....I take a note.
Maybe there are more than one printable character at the end...you can try something like this:
.*(\.DS_Store|\\Icon.*)$
The change is that it now expects Icon after a "\" and there can be anything before the end of the line....
-
Here is an example:
-
Thanks, I will have a look on it over the weekend....
-
Hmm....your zip contains two icon files.
One in the MAME folder, named 'Icon_" and one in the _MACOSX folder named "._Icon_" and both are matched by .*(\.DS_Store|Icon.+)$ reg ex.
You can try .*(\.DS_Store|Icon.*)$
The . after Icon refers to any possible character, and the * means none of them , one or more of them....That should actually match anything Icon related....
-
In pre-macOS times, Macintosh files could have a resource fork (it was an inherent part of a file). To ensure compatibility with systems that don't support that, ZIP files contain those _MACOSX folders that contain a "normal" file copy of the resource fork.
I don't know of any app who still uses them but apparently Apple's compression engine still includes them in an archive.
I tried the new exclude mask string, icon files are still flagged. Could we achieve a better result with scanner simply ignoring invisible files (which all of these special files are)?
-
Hmm..interesting since the regular expression actually should match any possible character in there, no matter how many unprintable ones follow. I will check with some colleagues who maybe able to create me 10 folders with such files....
simply ignoring hidden files..hmm..I will do some tests....
-
hmm...according to the internet, MacOS creates it as "Icon" followed by a carrige return character. So just for a quick test you may try:
.*(\.DS_Store|Icon\r)$
This won't hide the "can't determine file size" or "can't calculate crc32 of" log message yet....but shouldn't list it as unneeded hopefully....