Go to the documentation of this file.
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
33 # include <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>
315 #endif // BALL_SYSTEM_DIRECTORY_H
Directory(const String &directory_path, bool set_current=false)
Directory(const Directory &directory)
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
bool setCurrent(String directory_path)
bool getFirstEntry(String &entry)
bool renameTo(String new_path)
static String getUserHomeDir()
Get the home directory of the current user.
bool remove(String old_path)
bool getNextEntry(String &entry)
void set(const Directory &directory)
bool set(const String &directory_path, bool set_current=false)
const String & getPath() const
static bool changeToUserHomeDir()
Goto the home directory of the current user.
bool find(const String &filename, String &filepath)
BALL_EXPORT bool operator==(const String &s1, const String &s2)
bool create(String path, const mode_t &mode=0777)
bool has(const String &item)
void get(Directory &directory) const
bool rename(String old_path, String new_path)
static const Size MAX_PATH_LENGTH