Re: Folder size
Re: Folder size
- Subject: Re: Folder size
- From: Christopher Nebel <email@hidden>
- Date: Wed, 25 Feb 2004 17:38:11 -0800
Better yet...
du -sk FolderPath
No tail required. Incidentally, if you use the Finder to do this, be
careful to distinguish between the "size" (aka "logical size", the
number of bytes actually in the file) and the "physical size" (the
number of bytes it takes up on the disk). A one-byte file only takes
up one byte of logical size, but 4K of physical size. du -k reports
physical size in KiB.
In general, this problem is sort of hard, because it's not clear where
or how to split up the folders, especially if you have to split
somewhere inside the hierarchy -- it depends on what you plan to do
with the end result. One way to approach it is to have the complete
folder hierarchy replicated on each disk, but each copy only has some
of the files.
Of course, if you're doing this for backup purposes, then several
products will do something like this for you. StuffIt, for example,
will let you split an archive into chunks, so you'd put everything into
one archive, then ask to break it into 700 MB pieces, and burn each
piece to a disk. I think Retrospect will do something similar.
--Chris Nebel
AppleScript Engineering
On Feb 25, 2004, at 11:22 AM, Brent Baisley wrote:
You could do pretty easy with a shell command:
du -ck FolderPath | tail -1
That's a pipe (vertical bar) a capital i or a lower case L. That will
return a single line in this format:
# total
On Feb 25, 2004, at 12:36 PM, Mike Wendelken wrote:
I would like to know if I can applescript a large size folder into
smaller
folders. I would like to do this so it can accommodate the size of a
700mg CD. Is there a way that the folder structure can stay in tack
when
switching from new folder to new folder. Any help or direction will be
greatly appreciated.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.