Changeset 0ce9eb8 in mainline for uspace/lib/fmgt/src/fmgt.c


Ignore:
Timestamp:
2026-02-10T12:52:07Z (2 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
857fba8
Parents:
26a9388
git-author:
Jiri Svoboda <jiri@…> (2026-02-10 18:51:59)
git-committer:
Jiri Svoboda <jiri@…> (2026-02-10 12:52:07)
Message:

Ask user what to do if destination file exists while copying.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fmgt/src/fmgt.c

    r26a9388 r0ce9eb8  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2026 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    283283}
    284284
     285/** Query caller how to recover from existing destination file/directory.
     286 *
     287 * @param fmgt File management object
     288 * @param exists File/directory exists report
     289 * @return What recovery action should be taken.
     290 */
     291fmgt_exists_action_t fmgt_exists_query(fmgt_t *fmgt, fmgt_exists_t *exists)
     292{
     293        if (fmgt->cb != NULL && fmgt->cb->exists_query != NULL)
     294                return fmgt->cb->exists_query(fmgt->cb_arg, exists);
     295        else
     296                return fmgt_exr_abort;
     297}
     298
    285299/** Return base name (without path component).
    286300 *
Note: See TracChangeset for help on using the changeset viewer.