copyAllTo:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

copyAllTo:

HilaireFernandes
copyAllTo: does not do what its comment says:

'/tmp/toto/titi' asFileReference ensureCreateDirectory.
'/tmp/dest' asFileReference ensureCreateDirectory.
'/tmp/toto' asFileReference copyAllTo: '/tmp/dest' asFileReference

'toto' directory is not copied contrary to what wrote the method comment.

What is wrong, the comment or the method?

Hilaire

copyAllTo: aResolvable
        "Performs a deep copy of the receiver, to a location specified by the
argument. If the receiver is a file, the file will be copied; if a
directory, the directory and its contents will be copied recursively.
The argument must be a reference that doesn't exist; it will be created
by the copy."

--
Dr. Geo
http://drgeo.eu