class documentation
Provides utility functions for filenames.
FileInfo provides easy access to the components of a file's path relative to the project root.
Method | __init__ |
Undocumented |
Method |
|
File base name - text after the final slash, before the final period. |
Method |
|
File extension - text following the final period. |
Method |
|
Make Windows paths like Unix. |
Method |
|
File has a source file extension. |
Method |
|
File has no source file extension. |
Method |
|
FullName after removing the local path to the repository. |
Method |
|
Splits the file into the directory, basename, and extension. |
Instance Variable | _filename |
Undocumented |
FullName after removing the local path to the repository.
If we have a real absolute path name here we can try to do something smart: detecting the root of the checkout and truncating /path/to/checkout from the name so that we get header guards that don't include things like "C:Documents and Settings..." or "/home/username/..." in them and thus people on different computers who have checked the source out to different locations won't see bogus errors.