class FilePath

Defined at line 126 of file ../../third_party/mini_chromium/src/base/files/file_path.h

An abstraction to isolate users from the differences between native

pathnames on different platforms.

Public Members

static const CharType[] kSeparators
static const CharType[] kCurrentDirectory
static const CharType[] kParentDirectory
static const CharType kExtensionSeparator

Public Methods

void FilePath ()
void FilePath (const FilePath & that)
void FilePath (const StringType & path)
void ~FilePath ()
FilePath & operator= (const FilePath & that)
bool operator== (const FilePath & that)
bool operator!= (const FilePath & that)
bool IsSeparator (CharType character)

Returns true if |character| is in kSeparators.

FilePath DirName ()

Returns a FilePath corresponding to the directory containing the path

named by this object, stripping away the file component. If this object

only contains one component, returns a FilePath identifying

kCurrentDirectory. If this object already refers to the root directory,

returns a FilePath identifying the root directory.

FilePath BaseName ()

Returns a FilePath corresponding to the last path component of this

object, either a file or a directory. If this object already refers to

the root directory, returns a FilePath identifying the root directory;

this is the only situation in which BaseName will return an absolute path.

StringType FinalExtension ()

Returns the path's file extension. This does not have a special case for

common double extensions, so FinalExtension() of "foo.tar.gz" is simply

".gz". If there is no extension, "" will be returned.

FilePath RemoveFinalExtension ()

Returns a FilePath with FinalExtension() removed.

FilePath Append (const StringType & component)

Returns a FilePath by appending a separator and the supplied path

component to this object's path. Append takes care to avoid adding

excessive separators if this object's path already ends with a separator.

If this object's path is kCurrentDirectory, a new FilePath corresponding

only to |component| is returned. |component| must be a relative path;

it is an error to pass an absolute path.

FilePath Append (const FilePath & component)
bool IsAbsolute ()

Returns true if this FilePath contains an absolute path. On Windows, an

absolute path begins with either a drive letter specification followed by

a separator character, or with two separator characters. On POSIX

platforms, an absolute path begins with a separator character.

bool operator< (const FilePath & that)

Required for some STL containers and operations

Defined at line 167 of file ../../third_party/mini_chromium/src/base/files/file_path.h

const StringType & value ()

Defined at line 171 of file ../../third_party/mini_chromium/src/base/files/file_path.h

bool empty ()

Defined at line 173 of file ../../third_party/mini_chromium/src/base/files/file_path.h

void clear ()

Defined at line 175 of file ../../third_party/mini_chromium/src/base/files/file_path.h