コード例 #1
0
ファイル: xstat.py プロジェクト: 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)
コード例 #2
0
ファイル: xstat.py プロジェクト: takeshitakenji/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)
コード例 #3
0
ファイル: xstat.py プロジェクト: 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)
コード例 #4
0
ファイル: xstat.py プロジェクト: takeshitakenji/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)