Changeset 33809 in vbox
- Timestamp:
- Nov 5, 2010 6:19:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r33798 r33809 1198 1198 PDIRECTORYENTRY pNode; 1199 1199 uint32_t uCurObject = 1; 1200 char szDest[RTPATH_MAX];1201 1200 RTListForEach(&listToCopy, pNode, DIRECTORYENTRY, Node) 1202 1201 { 1203 /* 1204 * Build final destination path: Append the relative path 1205 * stored in the directory node to the destination directory 1206 * specified on the command line. 1207 */ 1208 szDest[0] = '\0'; /* Terminate string, needed for RTPathAppend(). */ 1209 vrc = RTPathAppend(szDest, sizeof(szDest), Utf8Dest.c_str()); 1210 if (RT_SUCCESS(vrc)) 1211 vrc = RTPathAppend(szDest, sizeof(szDest), pNode->pszDestPath); 1212 1213 if (RT_SUCCESS(vrc)) 1214 { 1215 if (fVerbose) 1202 if (fVerbose) 1216 1203 #ifndef DEBUG 1217 RTPrintf("Copying \"%s\" (%u/%u) ...\n",1218 pNode->pszSourcePath, uCurObject, cObjects);1204 RTPrintf("Copying \"%s\" (%u/%u) ...\n", 1205 pNode->pszSourcePath, uCurObject, cObjects); 1219 1206 #else 1220 RTPrintf("Copying \"%s\" to \"%s\" (%u/%u) ...\n",1221 pNode->pszSourcePath, pNode->pszDestPath, uCurObject, cObjects);1207 RTPrintf("Copying \"%s\" to \"%s\" (%u/%u) ...\n", 1208 pNode->pszSourcePath, pNode->pszDestPath, uCurObject, cObjects); 1222 1209 #endif 1223 /* Finally copy the desired file (if no dry run selected). */ 1224 if (!fDryRun) 1225 vrc = ctrlCopyFileToGuest(guest, pNode->pszSourcePath, szDest, 1226 Utf8UserName.c_str(), Utf8Password.c_str(), uFlags); 1227 } 1228 else 1229 RTMsgError("Error building destination file name, rc=%Rrc\n", vrc); 1210 /* Finally copy the desired file (if no dry run selected). */ 1211 if (!fDryRun) 1212 vrc = ctrlCopyFileToGuest(guest, pNode->pszSourcePath, pNode->pszDestPath, 1213 Utf8UserName.c_str(), Utf8Password.c_str(), uFlags); 1230 1214 if (RT_FAILURE(vrc)) 1231 1215 break;
Note:
See TracChangeset
for help on using the changeset viewer.

