Package portage :: Package util :: Module movefile
[hide private]

Module movefile

source code

Classes [hide private]
  _xattr_excluder
Functions [hide private]
 
_apply_stat(src_stat, dest) source code
 
_get_xattr_excluder(pattern) source code
 
_copyxattr(src, dest, exclude=None) source code
 
movefile(src, dest, newmtime=None, sstat=None, mysettings=None, hardlink_candidates=None, encoding=u'utf_8')
moves a file from src to dest, preserving all permissions and attributes; mtime will be preserved even when moving across filesystems.
source code
Variables [hide private]
  _xattr_excluder_cache = {}
  _devnull = open("/dev/null", "wb")
  _has_getfattr_and_setfattr = False
  __package__ = 'portage.util'

Imports: errno, fnmatch, _os, _shutil, stat, sys, subprocess, textwrap, portage, bsd_chflags, _encodings, _os_overrides, _selinux, _unicode_decode, _unicode_encode, _unicode_func_wrapper, _unicode_module_wrapper, MOVE_BINARY, OperationNotSupported, _, spawn, writemsg, xattr


Function Details [hide private]

movefile(src, dest, newmtime=None, sstat=None, mysettings=None, hardlink_candidates=None, encoding=u'utf_8')

source code 

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.