From 327b9ad4985a1939826746c98b44957dd4ca59ce Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 2 Apr 2020 02:59:52 +0200 Subject: Add cc4group.extractSingleRename --- src/cc4group.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/cc4group.h') diff --git a/src/cc4group.h b/src/cc4group.h index d81e84a..a7d2dcc 100644 --- a/src/cc4group.h +++ b/src/cc4group.h @@ -305,9 +305,14 @@ typedef struct { bool (*extractAll)(CC4Group* const this, const char* const targetPath); // extracts only a single file or a sub directory of the group denoted by the entryPath to the targetPath - // the containing directory of the targetPath must exist, but the final targetPath must not exist. otherwise an error will be generated + // the targetPath must exist and be a directory. the entry/ies will be extracted inside the targetPath bool (*extractSingle)(CC4Group* const this, const char* const entryPath, const char* const targetPath); + // extracts only a single file or a sub directory of the group denoted by the entryPath to the targetPath + // the containing directory of the targetPath must exist, but the final targetPath must not exist. otherwise an error will be generated + // the entry denoted by entryPath will be renamed according to the targetPath + bool (*extractSingleRename)(CC4Group* const this, const char* const entryPath, const char* const targetPath); + // retrieval of metadata about the stored files and directories // stores all metadata known about the entry denoted by path into the CC4Group_EntryInfo struct pointed to by info, similar to stat -- cgit v1.2.3-54-g00ecf