summaryrefslogtreecommitdiff
path: root/lib/utils/mu-utils-file.cc
AgeCommit message (Collapse)Author
2026-04-10lib/utils: small cleanupsDirk-Jan C. Binnema
Fix some static analysis warnings
2026-03-17mu-utils-file: use std::filesystem::remove_allDirk-Jan C. Binnema
Instead of the hacky "rm -rf"
2026-03-17mu-utils-file: remove some unused codeDirk-Jan C. Binnema
2026-03-07mu/lib: fix some possible quoting issuesDirk-Jan C. Binnema
2025-11-19utils/file: rework remove_directory, add testDirk-Jan C. Binnema
Make remove_directory not much less ugly, but at least more robust, e.g., when the "rm" binary is not at /bin/rm Add unit test
2025-08-16mu-init: automatic export labels with --reinitDirk-Jan C. Binnema
When re-initializing the store, automatically write the labels to a file in mu's cache, so user can later import them.
2024-12-09utils-file: add unit-test for expand_fileDirk-Jan C. Binnema
2024-04-21compat: include sys/wait.h where neededDirk-Jan C. Binnema
netbsd needs this explicitly, other systems let us get away without it.
2023-10-07expand_path: better handle paths with spacesDirk-Jan C. Binnema
I.e., work around surprising behavior of wordexp Fixes #2566.
2023-09-24maildir: improve unit testsDirk-Jan C. Binnema
And get some more info from run_command.
2023-09-24utils/add: improve unit test coverageDirk-Jan C. Binnema
2023-09-19mu-file-utils: add run_command0Dirk-Jan C. Binnema
To ensure command ran and had exit-code=0 in one go.
2023-09-13utils-file: improve mu_playDirk-Jan C. Binnema
implement in terms of run_command
2023-09-10utils/file: add basename/dirname helpers and use themDirk-Jan C. Binnema
2023-08-27utils: small tweaksDirk-Jan C. Binnema
2023-08-03utils: add expand_path (wordexp wrapper)Dirk-Jan C. Binnema
For expanding command-line options for shells that don't do that by themselves.
2023-07-18utils: rework running system commandsDirk-Jan C. Binnema
Use g_spawn and pass arguments, so we don't involve a shell that needs escaping etc. Improve error handling.
2023-07-10utils: add some more helpers for test codeDirk-Jan C. Binnema
Creating and removing (temp) dirs, running mu commands.
2023-07-05update to use fmt-based apisDirk-Jan C. Binnema
Not complete, but a first big stab converting users of Mu::Error and various g_warning & friends, format to the new libfmt-based APIs.
2023-04-29lib/utils: implement read_from_stdinDirk-Jan C. Binnema
2023-04-29utils: implement g_cancellable_new_with_timeoutDirk-Jan C. Binnema
2023-01-29lib: use join_pathsDirk-Jan C. Binnema
Convert some manual concatenation to the new join_paths helper.
2023-01-29utils: add join_paths + testsDirk-Jan C. Binnema
2023-01-14utils: get rid of mu-util.[ch]Dirk-Jan C. Binnema
It was getting old... Remove the unused parts, refactor the few parts still in use.