Rudiments
directory.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_DIRECTORY_H
5#define RUDIMENTS_DIRECTORY_H
6
7#include <rudiments/private/directoryincludes.h>
8
11class RUDIMENTS_DLLSPEC directory : public object {
12 public:
15
18
20 bool open(const char *path);
21
23 bool close();
24
28 bool skip();
29
34 char *read();
35
38 void rewind();
39
42 uint64_t getChildCount();
43
49 char *getChildName(uint64_t index);
50
54
59
65
67 static bool create(const char *path, mode_t perms);
68
79 char *templatedirname, mode_t perms);
80
82 static bool remove(const char *path);
83
85 static bool removeTree(const char *path);
86
93
95 static bool changeDirectory(const char *path);
96
98 static bool changeRoot(const char *path);
99
102 static int64_t getMaxFileNameLength(const char *pathname);
103
106 static int64_t getMaxPathLength(const char *pathname);
107
113 const char *pathname);
114
115 #include <rudiments/private/directory.h>
116};
117
118#endif
Definition directory.h:11
static int64_t getMaxPathLength(const char *pathname)
bool close()
static bool changeDirectory(const char *path)
static bool getCanExceedMaxFileNameLength(const char *pathname)
static bool changeRoot(const char *path)
static bool removeTree(const char *path)
bool skip()
void rewind()
uint64_t getChildCount()
static char * getCurrentWorkingDirectory()
static bool remove(const char *path)
static int64_t getMaxFileNameLength(const char *pathname)
char * getChildName(uint64_t index)
bool open(const char *path)
bool getCanExceedMaxFileNameLength()
static bool createTemporaryDirectory(char *templatedirname, mode_t perms)
int64_t getMaxPathLength()
static bool create(const char *path, mode_t perms)
char * read()
int64_t getMaxFileNameLength()
Definition object.h:10