diff src/core/filesystem.cc @ 369:47c9f8502269

*: clang-format all the things I've edited the formatting a bit. Now pointer asterisks (and reference ampersands) are on the variable instead of the type, as well as having newlines for function braces (but nothing else)
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 10:16:02 -0400
parents 862d0d8619f6
children
line wrap: on
line diff
--- a/src/core/filesystem.cc	Fri Jul 25 10:05:23 2025 -0400
+++ b/src/core/filesystem.cc	Fri Jul 25 10:16:02 2025 -0400
@@ -10,16 +10,18 @@
 
 /* this runs fs::create_directories() on the
    PARENT directory. */
-void CreateDirectories(const std::filesystem::path& path) {
+void CreateDirectories(const std::filesystem::path &path)
+{
 	if (path.empty())
 		return;
 
-	const auto& parent = path.parent_path();
+	const auto &parent = path.parent_path();
 	if (!std::filesystem::exists(parent))
 		std::filesystem::create_directories(parent);
 }
 
-std::filesystem::path GetDotPath() {
+std::filesystem::path GetDotPath()
+{
 	/*
 	 * Windows: ~/AppData/Roaming/Minori
 	 * macOS: ~/Library/Application Support/Minori
@@ -34,15 +36,18 @@
 #endif
 }
 
-std::filesystem::path GetConfigPath() {
+std::filesystem::path GetConfigPath()
+{
 	return GetDotPath() / CONFIG_NAME;
 }
 
-std::filesystem::path GetAnimeDBPath() {
+std::filesystem::path GetAnimeDBPath()
+{
 	return GetDotPath() / "anime" / "db.json";
 }
 
-std::filesystem::path GetTorrentsPath() {
+std::filesystem::path GetTorrentsPath()
+{
 	return GetDotPath() / "torrents";
 }