portage.util.movefile module

portage.util.movefile._apply_stat(src_stat, dest)
portage.util.movefile._copyxattr(src, dest, exclude=None)

Copy the extended attributes from |src| to |dest|

class portage.util.movefile._xattr_excluder(pattern)

Bases: object

portage.util.movefile.movefile(src, dest, newmtime=None, sstat=None, mysettings=None, hardlink_candidates=None, encoding='utf_8')

moves a file from src to dest, preserving all permissions and attributes; mtime will be preserved even when moving across filesystems. Returns mtime as integer on success and None on failure. mtime is expressed in seconds in Python <3.3 and nanoseconds in Python >=3.3. Move is atomic.