Obtaining the size of a file
Dick Kriesel
dick.kriesel at mail.com
Sat Apr 21 04:31:06 EDT 2007
On 4/21/07 1:03 AM, "Bill Marriott" <wjm at wjm.org> wrote:
> Another way to make quick work of the detailed files is to put them into an
> array:
>
> put the detailed files into foobar
> split foobar by return and comma
>
> then you can say,
>
> get item 1 of foobar[urlencode(myFileName)]
>
> to obtain the file size. How's that for a one-liner?
You can include the size of the Mac data fork and still use just one line:
get sum(item 1 to 2 of foobar[urlencode(myFileName)])
-- Dick
More information about the use-livecode
mailing list