libgourou/utils
Benoît Perrin 1abb470819 Fix adept_remove -O placing result in a nested sub-directory
With -O <dir>, the output path was built from the full input path
instead of its base name:

    filename = std::string(inputFile);
    if (outputDir)
        filename = std::string(outputDir) + "/" + filename;

So `adept_remove -O /out /tmp/x/book.epub` wrote the result to
/out/tmp/x/book.epub (createPath() silently creating the intermediate
directories) instead of /out/book.epub.

-O is documented as the directory "were to put result", so only the
input's base name should be appended. acsmdownloader is unaffected
because it derives its output name from the title metadata, not from
the input path.

Reduce the input to its base name before prefixing it with -O.
2026-07-01 11:14:30 +02:00
..
man Work on Makefile 2023-01-11 19:57:47 +01:00
acsmdownloader.cpp Fix bug in utils with -o and -O options 2026-02-01 08:56:27 +01:00
adept_activate.cpp Fix bug in utils with -o and -O options 2026-02-01 08:56:27 +01:00
adept_loan_mgt.cpp Fix help of adept_load_mgt 2026-04-12 19:44:11 +02:00
adept_remove.cpp Fix adept_remove -O placing result in a nested sub-directory 2026-07-01 11:14:30 +02:00
drmprocessorclientimpl.cpp Refresh curl download percent only when updated 2026-02-17 20:07:57 +01:00
drmprocessorclientimpl.h Some code formating 2026-01-18 15:44:20 +01:00
launcher.cpp Fix bug in utils with -o and -O options 2026-02-01 08:56:27 +01:00
LICENSE Initial commit 2021-07-03 21:57:53 +02:00
Makefile Use -fmacro-prefix-map for utils 2026-03-14 13:51:40 +01:00
utils_common.cpp Fix bug in utils with -o and -O options 2026-02-01 08:56:27 +01:00
utils_common.h Fix bug in utils with -o and -O options 2026-02-01 08:56:27 +01:00