#include <mi32/filepath.h>
Definition at line 168 of file filepath.h.
|
|
Definition at line 171 of file filepath.h. |
|
|
Type of children to select in GetChildren calls.
Definition at line 221 of file filepath.h. |
|
|
File system types as can be determined.
Definition at line 184 of file filepath.h. |
|
|
Common file path types.
Definition at line 197 of file filepath.h. |
|
|
Possible file permissions to set or check for.
Definition at line 174 of file filepath.h. |
|
|
Default constructor, empty path.
|
|
|
Copy constructor.
|
|
||||||||||||
|
Concatenation constructor, 'dir' must be a directory.
|
|
||||||||||||
|
Concatenation constructor, 'dir' must be a directory.
|
|
||||||||||||||||
|
Concatenation constructor, 'dir' must be a directory.
|
|
|
Constructor, inialize with a system path.
|
|
|
Constructor, initialize with MISTRING.
|
|
|
Constructor, initialize with UNICODE*, for compatibility.
|
|
||||||||||||
|
Constructor, initialize with C string, for efficiency.
|
|
||||||||||||||||
|
Initialize a FILEPATH with an entry from an INI file.
|
|
|
Destructor.
|
|
||||||||||||
|
Append a string to FILEPATH, adding separator.
|
|
||||||||||||
|
Assign a character string representation of a path to FILEPATH using the character encoding.
|
|
|
Check access permissions on the file / directory.
|
|
|
Clear the path representation.
|
|
|
Check if path contains "subpath" given.
|
|
|
Convert component OS filename passed in to a displayable filename. Only has an effect on MAC_OSX where the colon ':' is transposed to a slash '/' when displaying |
|
||||||||||||||||
|
Copy contents from SourcePath.
|
|
|
Check if file exists.
|
|
|
Generate Operating system specific path with the proper encoding for character based IO calls. Use this method to call functions that take a path ONLY if nothing else can be done and it is a third party library. It is not known if the third party library can handle the multiple encodings if they manipulate the path.
|
|
||||||||||||
|
Generate a temp file given a basepath and a basename for the temp file Called by FILEFIND::MakeTempFile().
|
|
|
Returns the amount of free space on the volume that the path represents.
|
|
||||||||||||||||
|
Obtain a list of child directories or files that exist under this path using a pattern to select which children to find.
|
|
||||||||||||
|
Obtain a list of child directories or files that exist under this path.
|
|
|
Separate path into individual components, returns number of components.
|
|
|
Get the display string representation for the path. Used to get a string that is to be displayed to the end user. |
|
|
Determine list of drives / volumes for this OS.
|
|
|
Get the encoded string representation for the path. Used to get a string that is to be saved to a database / file for later retrieval. The encoding is used in the case of file transfer to different system types, Eg UNIX -> WIN32 or MAC -> WIN32 or any other combination. |
|
||||||||||||
|
Get an environment variable as a path (or paths) and convert using the correct OS encoding.
|
|
|
Get the file name extension, without the extension marker. The extension is considered to be the string after the last extension marker. Eg. in "test.rvc.txt", 'txt' would be the extension returned. |
|
|
Get type of system drive the path represents.
|
|
|
Get the Mio...() encoded string representation for the path. Used in legacy code where the function requires a const UNICODE* string. |
|
|
Get the last component name (file or folder) with extension (if exists).
|
|
|
Get the file name only, no extension, unless directory. A directory is not considered to have an extension, therefore if this path represents a directory, the name with extension is returned. |
|
|
Get the OS string representation for the path. Used to generate valid path string for use in OS-specific file I/O functions. Does not insert quotes around components containing spaces. Note, you probably really want GenerateEncodedOSPath() which will convert the filename to the character encoding of the file system
|
|
|
Get the path representation only.
|
|
|
Get access permissions on the file / directory.
|
|
|
Get path with quotes inserted around components containing spaces. Used to generate a valid string to use command lines.
|
|
|
Generate an encoded relative path from a system default path.
|
|
|
Generate an encoded relative path from a source path. The string returned will be one of three types: 1. A string == ".", the current path and the source path are equal 2. An encoded string from GetEncoded() method, the two paths are completely unrelated 3. An encoded string with the relative path. See also IsRelativePath().
|
|
|
Return size of the file.
|
|
|
Return maximum size of a file on the drive represented.
|
|
|
Get the creation time for the file.
|
|
|
Get the modification time for the file.
|
|
|
Does the path have children of a specific type?
|
|
|
Does the Name part of the path have an extension?
|
|
||||||||||||||||
|
Initialize a FILEPATH with an entry from an INI file.
|
|
||||||||||||||||
|
Write encoded filepath to .ini file.
|
|
|
Is the path a child path of 'BasePath'.
|
|
|
Is FILEPATH empty?
|
|
|
Are the paths equal? Case insensitive check for WIN32, MAC. |
|
|
Is FILEPATH an existing file?
|
|
|
Is FILEPATH an existing folder (directory)?
|
|
|
Is "this" less than testpath? Case insensitive check for WIN32, MAC. |
|
|
Is the file referenced a directory? A non-existant path is a directory. |
|
|
Is the path / file readable?
|
|
|
Is the string given specify a relative path. A string is considered a relative path if: 1. The string is empty or the string == "." 2. The string starts with a relative path indicator specific for the platform On all but the MAC, the string can start with either the same directory relative path or the parent directory relative path. The MAC does not have a current directory relative path. Example: if (FILEPATH::IsRelativePath(RelStr)) { FilePath = BasePath; // Assign base path to dest FilePath += RelStr; // Concatinate relative path onto dest } else { FilePath = RelStr; // Full path, assign to dest }
|
|
|
Is the path a root path?
|
|
|
Does the filepath have the same extension as that passed in This method is used to speed up extension checking without creating one or two MISTRINGs This method uses no-case comparisons.
|
|
|
Does the filepath have the same extension as that passed in This method is used to speed up extension checking without creating one or two MISTRINGs This method uses no-case comparisons.
|
|
|
Is the path a UNC host path only? (\Machine). \ |
|
|
Is the path a UNC root path? (\Machine\share). \ |
|
|
Is the path / file writable? (Writable is correct spelling). |
|
|
Creates a path, returns 0 if path was created or existed, < 0 if error. If true, will create all non-existant directories listed in its path. |
|
|
Concatenate from C string, for efficiency.
|
|
|
Concatenate from UNICODE*, adding separator.
|
|
|
Concatenate from MISTRING, adding separator.
|
|
|
Assignment from UNICODE*.
|
|
|
Assignment from MISTRING.
|
|
|
Assignment operator.
|
|
|
Remove a file from the system, does not remove directories.
|
|
|
Rename an existing file with a new name extracted from 'newname', FILEPATH not changed.
|
|
|
Rename an existing file with a new name, FILEPATH changed after sucessful operation.
|
|
|
Replace root of the path with a new root.
|
|
|
Search for file by changing path case incrementally.
|
|
|
Search path for file using reference path iteratively.
|
|
||||||||||||
|
Set extension of the path.
|
|
|
Set extension of the path.
|
|
||||||||||||
|
Set application executable name so that PATHTYPE_Executable for SetSystemPath() can work. For UNIX systems only!
|
|
||||||||||||
|
Replace FILEPATH name, overloaded for efficiency.
|
|
|
Replace FILEPATH name.
|
|
|
Set access permissions on the file / directory.
|
|