Changeset 71670 in vbox
- Timestamp:
- Apr 5, 2018 8:27:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestFileTable.cpp
r71654 r71670 284 284 QVector<KDirectoryCreateFlag> flags(KDirectoryCreateFlag_None); 285 285 286 m_comGuestSession.DirectoryCreate(newDirectoryPath, 777/*aMode*/, flags);286 m_comGuestSession.DirectoryCreate(newDirectoryPath, 0/*aMode*/, flags); 287 287 if (!m_comGuestSession.isOk()) 288 288 { … … 319 319 QVector<KFileCopyFlag> flags(KFileCopyFlag_FollowLinks); 320 320 /* API expects a full file path as destionation: */ 321 QString destinatioFilePath = UIPathOperations:: mergePaths(hostDestinationPath, UIPathOperations::getObjectName(guestSourcePath));321 QString destinatioFilePath = UIPathOperations::addTrailingDelimiters(hostDestinationPath); 322 322 /** @todo listen to CProgress object to monitor copy operation: */ 323 323 /*CProgress comProgress =*/ m_comGuestSession.FileCopyFromGuest(guestSourcePath, destinatioFilePath, flags); … … 349 349 QString destinationFilePath = UIPathOperations::addTrailingDelimiters(guestDestinationPath); 350 350 /** @todo listen to CProgress object to monitor copy operation: */ 351 /*CProgress comProgress =*/ m_comGuestSession.FileCopyToGuest(hostSourcePath, "/home/vbox/temp/", flags);351 /*CProgress comProgress =*/ m_comGuestSession.FileCopyToGuest(hostSourcePath, destinationFilePath, flags); 352 352 } 353 353 else if(hostFileInfo.isDir()) … … 355 355 356 356 QVector<KDirectoryCopyFlag> aFlags(KDirectoryCopyFlag_CopyIntoExisting); 357 QString destinationFilePath = UIPathOperations::addTrailingDelimiters(guestDestinationPath); 357 358 /** @todo listen to CProgress object to monitor copy operation: */ 358 /*CProgress comProgress = */ m_comGuestSession.DirectoryCopyToGuest(hostSourcePath, guestDestinationPath, aFlags);359 /*CProgress comProgress = */ m_comGuestSession.DirectoryCopyToGuest(hostSourcePath, destinationFilePath, aFlags); 359 360 } 360 361 if (!m_comGuestSession.isOk())
Note:
See TracChangeset
for help on using the changeset viewer.