4 #ifndef RUDIMENTS_DIRECTORY_H
5 #define RUDIMENTS_DIRECTORY_H
7 #include <rudiments/private/directoryincludes.h>
9 class directoryprivate;
22 bool open(
const char *path);
44 uint64_t getChildCount();
51 char *getChildName(uint64_t index);
55 int64_t maxFileNameLength();
59 int64_t maxPathLength();
65 bool canAccessLongFileNames();
68 static bool create(
const char *path, mode_t perms);
71 static bool remove(
const char *path);
78 static char *getCurrentWorkingDirectory();
81 static bool changeDirectory(
const char *path);
84 static bool changeRoot(
const char *path);
88 static int64_t maxFileNameLength(
const char *pathname);
93 static int64_t maxPathLength(
const char *pathname);
99 static bool canAccessLongFileNames(
const char *pathname);
104 static bool needsMutex();
111 #include <rudiments/private/directory.h>
Definition: threadmutex.h:13
Definition: directory.h:13