Utils::FS Namespace Reference

Namespace for general filesystem functions for cross-platform compatability. More...


Functions

Glib::ustring cwd ()
 Get the current working directory.
void move (const Glib::ustring &from, Glib::ustring &to)
 Move a file on the filesystem.
bool dir_exists (const Glib::ustring &path)
 Check if a directory exists.
void make_dir (const Glib::ustring &path)
 Create a directory.
void remove_dir (const Glib::ustring &path)
 Recursively remove a directory.


Detailed Description

Namespace for general filesystem functions for cross-platform compatability.

Function Documentation

Glib::ustring Utils::FS::cwd (  ) 

Get the current working directory.

Returns:
The current working directory

bool Utils::FS::dir_exists ( const Glib::ustring &  path  ) 

Check if a directory exists.

Parameters:
path The path to the directory in question
Returns:
true if it exists, false otherwise

void Utils::FS::make_dir ( const Glib::ustring &  path  ) 

Create a directory.

Parameters:
path The path of the new directory

void Utils::FS::move ( const Glib::ustring &  from,
Glib::ustring &  to 
)

Move a file on the filesystem.

Parameters:
from The original file path
to The destination path

void Utils::FS::remove_dir ( const Glib::ustring &  path  ) 

Recursively remove a directory.

Parameters:
path The directory's path


Generated on Fri Feb 22 22:34:19 2008 for Phoenix Wright Case Editor API by  doxygen 1.5.3