public static VcTask copyFile(final VcDatastore srcDs, final String srcPath,
final VcDatastore dstDs, final String dstPath,
final IVcTaskCallback callback) throws Exception {
final String srcDsPath = getDsPath(srcDs, srcPath);
final String dstDsPath = getDsPath(dstDs, dstPath);
VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
@Override
public VcTask body() throws Exception {
FileManager mgr = VcContext.getService().getFileManager();
return new VcTask(TaskType.CopyFile,
mgr.copyFile(srcDsPath, srcDs.getDatacenterMoRef(),