def utime(path, times): atime = times[0].to_timespec() mtime = times[1].to_timespec() return _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime), 0)
def lutime(path, times): atime = times[0].to_timespec() mtime = times[1].to_timespec() return _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime), _helpers.AT_SYMLINK_NOFOLLOW)