- More Documentation
This commit is contained in:
@@ -37,7 +37,7 @@ path path::current() {
|
||||
#include <unistd.h>
|
||||
#include <linux/limits.h>
|
||||
|
||||
path path::current() {
|
||||
path path::get_current() {
|
||||
char cstr[PATH_MAX];
|
||||
if (getcwd(cstr, sizeof(cstr)) == nullptr) {
|
||||
return path("");
|
||||
@@ -45,11 +45,11 @@ path path::current() {
|
||||
return path(cstring(cstr, strlen(cstr)));
|
||||
}
|
||||
|
||||
path path::current(const path& path) {
|
||||
path path::set_current(const path& path) {
|
||||
if (chdir(path._str.cstr())) {
|
||||
return fennec::path("");
|
||||
}
|
||||
return current();
|
||||
return get_current();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user