next up previous contents
Next: Parameters Up: File Transfer Commands Previous: File Transfer Commands   Contents

copyFile

public void copyFile(java.net.URI     source,
                     java.net.URI     dest,
                     java.lang.String protocol,
                     int              nstreams,
                     boolean          force)

Copies a physical file from source to destination using the specified transport mechanism. This action does not involve any updates to the replica catalogs as the destination cannot be a grid-aware store, in order to avoid catalog corruption. copyAndRegisterFile needs to be used for that purpose, i.e. to bring a file into the grid. The destination does not accept GUIDs, LFNs or SURLs. As said, for those cases copyAndRegisterFile or replicateFile needs to be used.

copyFile provides all the capability of globus-url-copy and more, accepting also GUIDs, LFNs and SURLs as the source file. Since the destination is not on grid-storage, the destination file will not be registered in the catalog.

Example: To get a local copy of a grid file, the source file can be specified as a GUID or LFN and the destination file as a local file. The result will be that the file will be copied `out of the grid' to the local file. Local file URIs need to have the `file' scheme.


next up previous contents
Next: Parameters Up: File Transfer Commands Previous: File Transfer Commands   Contents
2004-06-14