7#ifndef BALL_SYSTEM_DIRECTORY_H
8#define BALL_SYSTEM_DIRECTORY_H
14#ifndef BALL_CONCEPT_PROCESSOR_H
18#ifndef BALL_DATATYPE_STRING_H
22#ifndef BALL_SYSTEM_FILESYSTEM_H
26#ifdef BALL_HAS_DIRENT_H
29#ifdef BALL_HAS_UNISTD_H
32#ifdef BALL_HAS_SYS_STAT_H
35#ifdef BALL_HAS_DIRECT_H
39#ifdef BALL_COMPILER_MSVC
40#define WINDOWS_LEAN_AND_MEAN
52#ifndef BALL_OS_WINDOWS
53# define INVALID_HANDLE_VALUE 0
124 bool set(
const String& directory_path,
bool set_current =
false);
291 int chdir_(
const String& new_dir);
297 bool desynchronize_(
bool result =
true);
298#ifdef BALL_COMPILER_MSVC
309# ifndef BALL_NO_INLINE_FUNCTIONS
310# include <BALL/SYSTEM/directory.iC>
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
static const Size MAX_PATH_LENGTH
static bool changeToUserHomeDir()
Goto the home directory of the current user.
bool getNextEntry(String &entry)
Directory(const Directory &directory)
bool getFirstEntry(String &entry)
bool setCurrent(String directory_path)
bool find(const String &filename, String &filepath)
Directory(const String &directory_path, bool set_current=false)
bool rename(String old_path, String new_path)
bool renameTo(String new_path)
bool remove(String old_path)
void set(const Directory &directory)
bool has(const String &item)
const String & getPath() const
bool create(String path, const mode_t &mode=0777)
void get(Directory &directory) const
bool set(const String &directory_path, bool set_current=false)
static String getUserHomeDir()
Get the home directory of the current user.