Source code for irfpy.util.iotools
""" IO related tools
"""
import os as _os
import stat as _stas
[docs]def mtime(path, *args, **kwds):
""" Return mtime of the file. Arguments will go os.stat() function.
:func:`mtime` function obtains the final change time (mtime) of the given path.
This is a syntax sugar, `os.stat(path).st_mtime`.
"""
s = _os.stat(path, *args, **kwds)
return s.st_mtime