VirtualBox

Changeset 36987 in vbox


Ignore:
Timestamp:
May 6, 2011 3:33:36 PM (14 years ago)
Author:
vboxsync
Message:

VBoxManage/GuestCtrl: Also create empty directories by default, comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r36978 r36987  
    6969static volatile bool    g_fGuestCtrlCanceled = false;
    7070
     71/**
     72 * An entry for a source element, including an optional filter.
     73 */
    7174typedef struct SOURCEFILEENTRY
    7275{
     
    9699typedef std::vector<SOURCEFILEENTRY> SOURCEVEC, *PSOURCEVEC;
    97100
     101/**
     102 * An entry for an element which needs to be copied to the guest.
     103 */
    98104typedef struct DESTFILEENTRY
    99105{
     
    101107    Utf8Str mFileName;
    102108} 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 */
    103113typedef std::map< Utf8Str, std::vector<DESTFILEENTRY> > DESTDIRMAP, *PDESTDIRMAP;
    104114typedef std::map< Utf8Str, std::vector<DESTFILEENTRY> >::iterator DESTDIRMAPITER, *PDESTDIRMAPITER;
     
    9901000            rc = VERR_NO_MEMORY;
    9911001    }
    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. */
    9951003    {
    9961004        if (!RTStrAPrintf(&pszDestFinal, "%s/%s", pszDestRoot, itDest->first.c_str()))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette