utils/file: add basename/dirname helpers and use them
This commit is contained in:
@ -155,7 +155,7 @@ get_target_fullpath(const std::string& src, const std::string& targetpath,
|
||||
if (auto&& res = check_subdir(src, in_cur); !res)
|
||||
return Err(std::move(res.error()));
|
||||
|
||||
const auto srcfile{to_string_gchar(g_path_get_basename(src.c_str()))};
|
||||
const auto srcfile{basename(src)};
|
||||
|
||||
/* create target-path; note: make the filename *cough* unique by
|
||||
* including a hash of the srcname in the targetname. This helps if
|
||||
|
||||
Reference in New Issue
Block a user