Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
ó
¾Ã9Qc @ s» d Z d d d d d g Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z d „ Z g d
„ Z d „ Z
e e d „ Z e e d
„ Z
e e d „ Z e e d „ Z d S( s= This module contains helper functions for dealing with files.t
issamefilet linkfilet copyfilet linkorcopyfilet overwrite_safelyiÿÿÿÿNi c C s1 t j | ƒ } t j | ƒ } t j j | | ƒ S( N( t ost statt patht samestat( t path1t path2t s1t s2( ( s3 /usr/lib/python2.7/site-packages/slip/util/files.pyt _issamefile# s c C s? | t k r t } n y t | | ƒ SWn | k
r: t SXd S( sE Check whether two paths point to the same file (i.e. are hardlinked).N( t Truet ExceptionR
t False( R R
t catch_stat_exceptions( ( s3 /usr/lib/python2.7/site-packages/slip/util/files.pyR * s
c C sô t | | d t ƒr d St j j | ƒ } t j j | ƒ } t j j | ƒ } t } x t t j
ƒ D]n } t j d | t j d | ƒ } y t j
| | ƒ Wn+ t k
rË } | j t j k rÅ qÓ ‚ qe Xt } Pqe W| rð t j | | ƒ n d S( sU Hardlink srcpath to dstpath.
Attempt to atomically replace dstpath if it exists.R Nt prefixt dir( R t OSErrorR R t abspatht dirnamet basenameR t xranget tempfilet TMP_MAXt mktempt extsept linkt errnot EEXISTR t rename( t srcpatht dstpatht dstdnamet dstbnamet
hardlinkedt attemptt _dsttmpt e( ( s3 /usr/lib/python2.7/site-packages/slip/util/files.pyR 6 s$ c
C s¨ t | | d t ƒr d St j j | ƒ } t j j | ƒ } t j j | ƒ } t | d ƒ } t j d | t j j
d | d t ƒ } t } | rÏ y t j
| | j ƒ t } WqÏ t j t f k
rË qÏ Xn | së t j
| | j ƒ n d } xa | d k rT| j t ƒ } y | j | ƒ Wqô | j ƒ | j ƒ t j | j ƒ ‚ qô Xqô W| j ƒ | j ƒ t j | j | ƒ | r¤t j ƒ d k r¤t j | ƒ n d S( s� Copy srcpath to dstpath.
Abort operation if e.g. not enough space is available. Attempt to
atomically replace dstpath if it exists.R Nt rbR R t deletet i ( R R R R R R R t openR t NamedTemporaryFileR R t shutilt copymodet nameR t Errort Nonet readt BLOCKSIZEt writet closet unlinkR t selinuxt is_selinux_enabledt
restorecon(
R! R" t copy_mode_from_dstt run_restoreconR# R$ t srcfilet
dsttmpfilet mode_copiedt data( ( s3 /usr/lib/python2.7/site-packages/slip/util/files.pyR W s@
c C si y t | | ƒ d SWn: t k
rQ } | j t j t j t j f k rR ‚ qR n Xt | | | | ƒ d S( st First attempt to hardlink srcpath to dstpath, if hardlinking isn't
possible, attempt copying srcpath to dstpath.N( R R R t EMLINKt EPERMt EXDEVR ( R! R" R; R<