Chromium Code Reviews| Index: presubmit_support.py |
| =================================================================== |
| --- presubmit_support.py (revision 122360) |
| +++ presubmit_support.py (working copy) |
| @@ -454,6 +454,10 @@ |
| """ |
| return os.path.abspath(os.path.join(self._local_root, self.LocalPath())) |
| + def GetFileExt(self): |
|
M-A Ruel
2012/02/16 22:35:43
I'd rather not add _yet another member_. Since it'
bulach
2012/02/17 01:25:15
sounds reasonable. removed..
|
| + """Returns the extension of this file.""" |
| + return os.path.splitext(self._path)[1] |
| + |
| def IsDirectory(self): |
| """Returns true if this object is a directory.""" |
| if self._is_directory is None: |