Added a modification time method.
git-svn-id: http://svn.robofab.com/branches/ufo3k@483 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
parent
8def59e71a
commit
f7db746770
@ -262,6 +262,14 @@ class GlyphSet(object):
|
||||
self._glifCache[glyphName] = (text, os.path.getmtime(path))
|
||||
return self._glifCache[glyphName][0]
|
||||
|
||||
def getGLIFModificationTime(self, glyphName):
|
||||
"""
|
||||
Get the modification time (as reported by os.path.getmtime)
|
||||
of the GLIF with glyphName.
|
||||
"""
|
||||
self.getGLIF(glyphName)
|
||||
return self._glifCache[glyphName][1]
|
||||
|
||||
def _purgeCachedGLIF(self, glyphName):
|
||||
if glyphName in self._glifCache:
|
||||
del self._glifCache[glyphName]
|
||||
|
Loading…
x
Reference in New Issue
Block a user