summaryrefslogtreecommitdiff
path: root/src/common/pathname.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-05-16 21:52:07 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-05-16 21:52:07 (GMT)
commit85e52ccd4c8aada6660d171e91c6c603f40606bb (patch)
treec9a376e10448ab62ba2668c69bdd0a3c5c968c4a /src/common/pathname.h
parent049f9fdb4c4fb44ecac9ade607a8462841010716 (diff)
Move some FS functions from io.[ch] to pathname.[ch].
Diffstat (limited to 'src/common/pathname.h')
-rw-r--r--src/common/pathname.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/pathname.h b/src/common/pathname.h
index f7b679e..1b6624c 100644
--- a/src/common/pathname.h
+++ b/src/common/pathname.h
@@ -38,6 +38,17 @@ char *build_absolute_filename(const char *, const char *);
/* S'assure que le chemin fourni est bien en place. */
bool mkpath(const char *);
+/* S'assure qu'un chemin donné existe dans le système. */
+int ensure_path_exists(const char *);
+
+/* Met en place un fichier temporaire. */
+#if 0 // TODO
+int make_tmp_file(const char *, const char *, char **);
+#endif
+
+/* Copie un fichier. */
+bool copy_file(const char *, const char *);
+
#endif /* _COMMON_PATHNAME_H */