BASIS  r3148
os.h File Reference

Operating system dependent functions. More...

#include <string>
#include "os/path.h"
+ Include dependency graph for os.h:
+ This graph shows which files directly or indirectly include this file:

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, 2012 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.h.