-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/export/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/export/dir_exporter.pyc

ó
î:ïNc@@sjdZddlmZddlZddlZddlmZmZddlm	Z	dddd„ZdS(s6Export a bzrlib.tree.Tree to a new or empty directory.i(tabsolute_importN(terrorstosutils(t_export_iter_entriescc@sŽytj|ƒWnRtk
re}|jtjkr_tj|ƒgkrbtjdƒ‚qbqf‚nXg}xt||ƒD]\}}	}
t	j
||ƒ}|
jdkrÑ|j|
j
||	|
j
ffƒn«|
jdkrðtj|ƒnŒ|
jdkr]y)|j|
j
|	ƒ}tj||ƒWq|tk
rY}tjd|||fƒ‚q|Xntjd|
j
|
jfƒ‚dVq|WtjtjBtjBttdd	ƒB}
xÛ|j|ƒD]Ê\\}}}}t	j
||ƒ}d
}|j||ƒrd}ntjtj||
|ƒdƒ}z|j|ƒWd|jƒX|dk	rY|}n|j||ƒ}tj|||fƒdVq¼WdS(
sŽReturn a generator that exports this tree to a new directory.

    `dest` should either not exist or should be empty. If it does not exist it
    will be created holding the contents of this tree.

    :param fileobj: Is not used in this exporter

    :note: If the export fails, the destination directory will be
           left in an incompletely exported state: export is not transactional.
    s)Can't export tree to non-empty directory.tfilet	directorytsymlinks,Failed to create symlink %r -> %r, error: %ss(don't know how to export {%s} of kind %rNtO_BINARYii¶iÿtwb(tostmkdirtOSErrorterrnotEEXISTtlistdirRtBzrErrorRRtpathjointkindtappendtfile_idtget_symlink_targetRtO_CREATtO_TRUNCtO_WRONLYtgetattrtiter_files_bytest
is_executabletfdopentopent
writelinestclosetNonetget_file_mtimetutime(ttreetdesttroottsubdirtforce_mtimetfileobjtetto_fetchtdpttptietfullpathtsymlink_targettflagstrelpathttreepathRtchunkstmodetouttmtime((s>/usr/lib/python2.7/dist-packages/bzrlib/export/dir_exporter.pytdir_exporter_generatorsR%		'%	!	(t__doc__t
__future__RRR	tbzrlibRRt
bzrlib.exportRRR6(((s>/usr/lib/python2.7/dist-packages/bzrlib/export/dir_exporter.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee