[Cuis-dev] FileEntry fileContents hangs on macOS Alias file
Bernhard Pieber
bernhard at pieber.com
Tue Aug 5 14:15:00 PDT 2025
Hi,
I tripped over a macOS alias file which has only 1172 bytes but whose contents cannot be shown in a file list in the latest Cuis7.5-7384.image. The cursor turns into an hourglass and I need to interrupt Cuis with Cmd-Dot.
I attached a zipped directory with the bad file and a good alias file to compare. To reproduce do:
(DirectoryEntry userBaseDirectory / 'alias_test' // 'good') fileContents size. 1222 .
(DirectoryEntry userBaseDirectory / 'alias_test' // 'bad') fileContents size. „hangs"
Is this a bug or a feature?
If I use binaryContents it does not hang but answers a size of 0 which also seems false to me as the file contains 1172 bytes. How can I get those into a ByteArray?
(DirectoryEntry userBaseDirectory / 'alias_test' // 'good') binaryContents size. 1228 .
(DirectoryEntry userBaseDirectory / 'alias_test' // 'bad') binaryContents size. 0.
I could reproduce it on another Mac.
Cheers,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alias_test.zip
Type: application/zip
Size: 2458 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250805/38609c37/attachment.zip>
More information about the Cuis-dev
mailing list