Ejemplo n.º 1
0
Archivo: xstat.py Proyecto: meeee/bup
 def utime(path, times):
     atime = times[0].to_timespec()
     mtime = times[1].to_timespec()
     return _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime), 0)
Ejemplo n.º 2
0
 def utime(path, times):
     atime = times[0].to_timespec()
     mtime = times[1].to_timespec()
     return _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime), 0)
Ejemplo n.º 3
0
Archivo: xstat.py Proyecto: meeee/bup
 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)
Ejemplo n.º 4
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)