Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GFileSystem Class Reference

A singleton class for accessing the file system. More...

#include <GFile.h>

List of all members.

Public Member Functions

GVolumeGetRootVolume ()
 Gets the root volume of the system.
GDirectoryGetDir ()
 Returns a dynamically allocated GDirectory to iterate a directory in the file system.
bool DeleteFile (char *FileName, bool ToTrash=true)
 Delete file.
bool DeleteFiles (GArray< char * > &Files, GArray< int > *Status=0, bool ToTrash=true)
 Delete files.
bool CreateDirectory (char *PathName)
 Create a directory.
bool RemoveDirectory (char *PathName, bool Recurse=false)
 Remove's a directory.
bool MoveFile (char *OldName, char *NewName)
 Moves a file to a new location. Only works on the same device.

Static Public Member Functions

static GFileSystemGetInstance ()
 Return the current instance of the file system. The shorthand for this is "FileDev".

Friends

class GFile


Detailed Description

A singleton class for accessing the file system.


Member Function Documentation

bool GFileSystem::DeleteFiles GArray< char * > &  Files,
GArray< int > *  Status = 0,
bool  ToTrash = true
 

Delete files.

Parameters:
Files  The list of files to delete
Status  A list of status codes where 0 means success and non-zero is an error code, usually an OS error code. NULL if not required.
ToTrash  true if you want the files moved to the trash folder, false if you want them deleted directly

bool GFileSystem::RemoveDirectory char *  PathName,
bool  Recurse = false
 

Remove's a directory.

Parameters:
PathName  The path to remove
Recurse  True if you want this function to recursively delete all contents of the path passing in.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:46:58 2005 for Lgi by  doxygen 1.4.1