MACSCRPT Archives

June 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Walter Ian Kaye <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 16 Jun 2011 03:34:36 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
At 09:26 p +0900 06/15/2011, Nobumi Iyanaga didst inscribe upon an 
electronic papyrus:

>-- And in the result, I found many many zero byte files. I checked 
>some of them, and found that some of them were indeed zero byte, but 
>others were not (there were for example many alias files which 
>returned zero byte with Perl's file test "-s"). So, it seems that 
>Perl's file test "-s" is not very reliable when we have to deal with 
>Mac file system.
>
>It seems that "ls -l" gives the same zero byte for alias files, etc.
>
>Does anyone know how it is possible to get the "real" byte size of 
>files with some Unix tool?


Unix tool to check the size of a file's resource fork:

>  ls -l filename/..namedfork/rsrc


-wataru ^_^

ATOM RSS1 RSS2