[squeak-dev] Copying the sources file
Chris Muller
asqueaker at gmail.com
Thu Apr 1 18:59:37 UTC 2010
> The complexity of meta-data (security, dates/times, Access lists, stuff) on a *file* make Squeak's desire to copy just the bits rather 1970 ish...
Well, you could also say, it does it in a way that is
platform-independent-ish... Lowest-common denominator, but the
default unix cp command loses time-stamp and permissions as well
unless you use -p...
Levente wrote:
> What's really "funny" about this method is that it doesn't really copy files, just the copies the contents of a ReadStream to WriteStream using a ByteString as a buffer. It doesn't use files at all.
It is a "utility" method because it is called by API methods on
FileDirectory. So perhaps #copyFile:toFile: should just be made
private and then you can think of it as merely a composed-method.
> Oh wait pre that since it doesn't preserve the from file security settings either...
>
>
> --
> ===========================================================================
> John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter: squeaker68882
> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
> ===========================================================================
>
>
>
>
>
>
>
>
More information about the Squeak-dev
mailing list
|