VirtualBox

Changeset 78112 in vbox


Ignore:
Timestamp:
Apr 11, 2019 2:16:53 PM (6 years ago)
Author:
vboxsync
Message:

Guest Control/Main: By default only delete empty directory structures when using IGuestSession::directoryRemoveRecursive(), e.g. the operation will abort if there are directories which are not empty. Will require new GAs >= r129975.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r78039 r78112  
    35003500        return setError(E_INVALIDARG, tr("No directory to remove recursively specified"));
    35013501
    3502     uint32_t fFlags = DIRREMOVEREC_FLAG_NONE;
     3502    /* By default only delete empty directory structures, e.g. the operation will abort if there are
     3503     * directories which are not empty. */
     3504    uint32_t fFlags = DIRREMOVEREC_FLAG_RECURSIVE;
    35033505    if (aFlags.size())
    35043506    {
     
    35113513
    35123514                case DirectoryRemoveRecFlag_ContentAndDir:
    3513                     fFlags = DIRREMOVEREC_FLAG_RECURSIVE | DIRREMOVEREC_FLAG_CONTENT_AND_DIR;
     3515                    fFlags |= DIRREMOVEREC_FLAG_CONTENT_AND_DIR;
    35143516                    break;
    35153517
    35163518                case DirectoryRemoveRecFlag_ContentOnly:
    3517                     fFlags = DIRREMOVEREC_FLAG_RECURSIVE | DIRREMOVEREC_FLAG_CONTENT_ONLY;
     3519                    fFlags |= DIRREMOVEREC_FLAG_CONTENT_ONLY;
    35183520                    break;
    35193521
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