Changeset 36987 in vbox
- Timestamp:
- May 6, 2011 3:33:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r36978 r36987 69 69 static volatile bool g_fGuestCtrlCanceled = false; 70 70 71 /** 72 * An entry for a source element, including an optional filter. 73 */ 71 74 typedef struct SOURCEFILEENTRY 72 75 { … … 96 99 typedef std::vector<SOURCEFILEENTRY> SOURCEVEC, *PSOURCEVEC; 97 100 101 /** 102 * An entry for an element which needs to be copied to the guest. 103 */ 98 104 typedef struct DESTFILEENTRY 99 105 { … … 101 107 Utf8Str mFileName; 102 108 } DESTFILEENTRY, *PDESTFILEENTRY; 109 /* 110 * Map for holding destination entires, whereas the key is the destination 111 * directory and the mapped value is a vector holding all elements for this directoy. 112 */ 103 113 typedef std::map< Utf8Str, std::vector<DESTFILEENTRY> > DESTDIRMAP, *PDESTDIRMAP; 104 114 typedef std::map< Utf8Str, std::vector<DESTFILEENTRY> >::iterator DESTDIRMAPITER, *PDESTDIRMAPITER; … … 990 1000 rc = VERR_NO_MEMORY; 991 1001 } 992 /* @todo Skip creating empty directories (or directories where a file filter (e.g. *.dll) 993 * did not find any files to copy. Make this configurable later! */ 994 else if (itDest->second.size()) 1002 else /* Create sub-directories, also empty ones. */ 995 1003 { 996 1004 if (!RTStrAPrintf(&pszDestFinal, "%s/%s", pszDestRoot, itDest->first.c_str()))
Note:
See TracChangeset
for help on using the changeset viewer.