directory.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_DIRECTORY_H
#define RUDIMENTS_DIRECTORY_H
#include <rudiments/private/directoryincludes.h>
class RUDIMENTS_DLLSPEC directory {
public:
directory();
~directory();
bool open(const char *path);
bool close();
bool skip();
char *read();
void rewind();
uint64_t getChildCount();
char *getChildName(uint64_t index);
int64_t maxFileNameLength();
int64_t maxPathLength();
bool canExceedMaxFileNameLength();
static bool create(const char *path, mode_t perms);
static bool createTemporaryDirectory(
char *templatedirname, mode_t perms);
static bool remove(const char *path);
static bool removeTree(const char *path);
static char *getCurrentWorkingDirectory();
static bool changeDirectory(const char *path);
static bool changeRoot(const char *path);
static int64_t maxFileNameLength(const char *pathname);
static int64_t maxPathLength(const char *pathname);
static bool canExceedMaxFileNameLength(
const char *pathname);
#include <rudiments/private/directory.h>
};
#endif
directory
Definition: directory.h:11
directory::close
bool close()
directory::changeDirectory
static bool changeDirectory(const char *path)
directory::directory
directory()
directory::canExceedMaxFileNameLength
static bool canExceedMaxFileNameLength(const char *pathname)
directory::maxPathLength
static int64_t maxPathLength(const char *pathname)
directory::changeRoot
static bool changeRoot(const char *path)
directory::removeTree
static bool removeTree(const char *path)
directory::skip
bool skip()
directory::rewind
void rewind()
directory::read
char * read()
directory::getChildCount
uint64_t getChildCount()
directory::maxFileNameLength
int64_t maxFileNameLength()
directory::maxPathLength
int64_t maxPathLength()
directory::remove
static bool remove(const char *path)
directory::open
bool open(const char *path)
directory::canExceedMaxFileNameLength
bool canExceedMaxFileNameLength()
directory::createTemporaryDirectory
static bool createTemporaryDirectory(char *templatedirname, mode_t perms)
directory::create
static bool create(const char *path, mode_t perms)
directory::maxFileNameLength
static int64_t maxFileNameLength(const char *pathname)
directory::~directory
~directory()
directory::getCurrentWorkingDirectory
static char * getCurrentWorkingDirectory()
directory::getChildName
char * getChildName(uint64_t index)