summaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os-posix.c b/os-posix.c
index 4485845..a620523 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -408,3 +408,7 @@ bool open_with_default_application(const char *path) {
return true;
}
}
+
+bool change_directory(const char *path) {
+ return chdir(path) == 0;
+}