BASIS  r3148
os.cxx File Reference

Operating system dependent functions. More...

#include <basis/config.h>
#include <basis/except.h>
#include <vector>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <basis/os.h>
#include <basis/os/path.h>
+ Include dependency graph for os.cxx:

Go to the source code of this file.

Namespaces

namespace  basis
namespace  basis::os

Functions

bool basis::os::emptydir (const std::string &path)
 Remove files and directories from directory.
std::string basis::os::exedir ()
 Get canonical path of directory containing executable file.
std::string basis::os::exename ()
 Get name of executable.
std::string basis::os::exepath ()
 Get canonical path of executable file.
std::string basis::os::getcwd ()
 Get absolute path of the (current) working directory.
bool basis::os::makedirs (const std::string &path)
 Make directory including parent directories if required.
bool basis::os::mkdir (const std::string &path)
 Make directory.
std::string basis::os::readlink (const std::string &path)
 Read value of symbolic link.
bool basis::os::rmdir (const std::string &path)
 Remove empty directory.
bool basis::os::rmtree (const std::string &path)
 Remove whole directory tree.

Detailed Description

Operating system dependent functions.

Copyright (c) 2011 University of Pennsylvania. All rights reserved.
See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.

Contact: SBIA Group <sbia-software at uphs.upenn.edu>

Definition in file os.cxx.