Inheritance diagram for MutableFilePath:
Public Member Functions | |
this () | |
this (FilePath other) | |
MutableFilePath | setExt (char[] ext) |
MutableFilePath | setName (char[] name) |
MutableFilePath | setPath (char[] path) |
MutableFilePath | setRoot (char[] root) |
MutableFilePath | setSuffix (char[] suffix) |
Private Member Functions | |
final MutableFilePath | set (char[]*x, char[]*v) |
this (Uri uri) | |
this (char[] filepath) | |
void | reset () |
bool | isAbsolute () |
char[] | getRoot () |
char[] | getPath () |
char[] | getName () |
char[] | getExtension () |
char[] | getSuffix () |
char[] | toString () |
MutableUri | toUri () |
void | write (IWriter writer) |
char[] | toUtf8 () |
wchar[] | toUtf16 () |
char[] | splice (FilePath base) |
IBuffer | splice (FilePath base, IBuffer buf) |
FilePath | toParent () |
bool | isChild () |
FilePath | toSibling (char[] name) |
FilePath | toSibling (char[] name, char[] ext) |
FilePath | toSibling (char[] name, char[] ext, char[] suffix) |
Definition at line 578 of file FilePath.d.
|
Create an empty MutableFilePath Reimplemented from FilePath. Definition at line 586 of file FilePath.d. |
|
Create a MutableFilePath through reference to another. Reimplemented from FilePath. Definition at line 596 of file FilePath.d. |
|
Set the extension of this FilePath. Definition at line 607 of file FilePath.d. |
|
Set the extension of this FilePath. Definition at line 620 of file FilePath.d. |
|
Set the name of this FilePath. Definition at line 631 of file FilePath.d. |
|
Set the path of this FilePath. Definition at line 642 of file FilePath.d. |
|
Set the root of this FilePath (such as "c:") Definition at line 653 of file FilePath.d. |
|
Set the suffix of this FilePath. Definition at line 664 of file FilePath.d. |
|
Create a FilePath from a Uri. Note that the Uri authority is used to house an optional root (device, drive-letter ...) Definition at line 118 of file FilePath.d. |
|
Create a FilePath from the given string. Note the path is not duplicated here, so you are expected to provide an immutable copy for the lifetime of this object. If you're not certain, duplicate the path first. Definition at line 138 of file FilePath.d. |
|
Definition at line 220 of file FilePath.d. Referenced by FilePath::toParent(), FilePath::toSibling(), and FilePath::toUtf8(). |
|
Returns true if this FilePath is *not* relative to the current working directory. Definition at line 233 of file FilePath.d. References FilePath::root. |
|
Return the root of this path. Roots are constructs such as "c:". Definition at line 247 of file FilePath.d. References FilePath::root. |
|
Return the file path. Paths start with a '/' but do not end with one. The root path is empty. Directory paths are split such that the directory name is placed into the 'name' member. Definition at line 261 of file FilePath.d. |
|
Return the name of this file, or directory. Definition at line 272 of file FilePath.d. Referenced by testScanFiles(). |
|
Return the file-extension, sans seperator Definition at line 283 of file FilePath.d. Referenced by ServletResponse::copyFile(), and testScanFiles(). |
|
Suffix is like extension, except it can include multiple '.' sequences. For example, "wumpus1.foo.bar" has suffix "foo.bar" and extension "bar". Definition at line 296 of file FilePath.d. References FilePath::suffix. |
|
Convert this FilePath to a char[]. This is expected to execute optimally in most cases. Definition at line 308 of file FilePath.d. References IBuffer::append(), Buffer::append(), Buffer, FilePath::ext, FilePath::fp, FilePath::MaxFilePathSize, FilePath::root, version, and FilePath::write(). Referenced by FileBucket::Record::eof(), and FileProxy::toString(). |
|
Convert this FilePath to a Uri. Note that a root (such as a drive-letter, or device) is placed into the Uri authority Definition at line 350 of file FilePath.d. References FilePath::ext, FilePath::root, MutableUri::setHost(), MutableUri::setPath(), MutableUri::setScheme(), and version. Referenced by testFilePath(). |
|
Write this FilePath to the given IWriter. This makes the FilePath compatible with all Writers Reimplemented from IWritable. Definition at line 377 of file FilePath.d. References FilePath::ext, IWriter::put(), and FilePath::root. Referenced by FilePath::toString(). |
|
Return a zero terminated version of this file path. Note that the compiler places a zero at the end of each static string, as does the allocator for char[] requests. In typical usage, this will not need to duplicate the path Definition at line 403 of file FilePath.d. References FilePath::fp, and FilePath::reset(). Referenced by FileConduit::Versionlinux::_open(), FileProxy::Versionlinux::createDirectory(), FileProxy::Versionlinux::createFile(), FileProxy::Versionlinux::getInfo(), FileProxy::Versionlinux::remove(), FileSystem::Versionlinux::setDirectory(), and FileProxy::Versionlinux::toList(). |
|
|
Splice this FilePath onto the end of the provided base path. Output is return as a char[]. Definition at line 435 of file FilePath.d. References Buffer, and FilePath::MaxFilePathSize. |
|
Splice this FilePath onto the end of the provided base path. Output is placed into the provided IBuffer. Definition at line 447 of file FilePath.d. References IBuffer::append(), FilePath::ext, FilePath::name, FilePath::path, and FilePath::root. |
|
Returns a FilePath representing the parent of this one. An exception is thrown if there is not parent (at the root). Definition at line 496 of file FilePath.d. References FilePath, FilePath::locateParent(), FilePath::path, and FilePath::reset(). |
|
Returns true if this FilePath has a parent. Definition at line 521 of file FilePath.d. |
|
Return a cloned FilePath with a different name. Definition at line 532 of file FilePath.d. Referenced by FilePath::toSibling(). |
|
Return a cloned FilePath with a different name and extension. Note that the suffix is destroyed. Definition at line 544 of file FilePath.d. References FilePath::suffix, and FilePath::toSibling(). |
|
Return a cloned FilePath with a different name, extension, and suffix. Definition at line 556 of file FilePath.d. References FilePath::ext, FilePath, FilePath::name, FilePath::reset(), and FilePath::suffix. |