aboutsummaryrefslogtreecommitdiff
path: root/bpkg/utility
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/utility')
-rw-r--r--bpkg/utility22
1 files changed, 22 insertions, 0 deletions
diff --git a/bpkg/utility b/bpkg/utility
index 9c6688f..f2c0ab5 100644
--- a/bpkg/utility
+++ b/bpkg/utility
@@ -9,11 +9,33 @@
namespace bpkg
{
+ // Filesystem.
+ //
bool
exists (const path&);
bool
exists (const dir_path&);
+
+ bool
+ empty (const dir_path&);
+
+ void
+ mk (const dir_path&);
+
+ void
+ mk_p (const dir_path&);
+
+ void
+ rm_r (const dir_path&, bool dir = true);
+
+ // Process.
+ //
+ void
+ run (const char* const args[]);
+
+ inline void
+ run (const cstrings& args) {run (args.data ());}
}
#endif // BPKG_UTILITY