o
    anqfÁ  ã                   @   s   d dl Z d dlZdd„ ZdS )é    Nc           
      C   sÆ   t j | ¡std| › dƒ‚t j |¡st  |¡ t  | ¡D ]7\}}}t j || ¡}t j ||¡}t j |¡s<t  |¡ |D ]}t j ||¡}t j ||¡}	t 	||	¡ q>qt
d| › d|› dƒ d S )NzSource folder 'z' does not exist.zBackup from 'z' to 'z' completed successfully.)ÚosÚpathÚexistsÚ	ExceptionÚmakedirsÚwalkÚrelpathÚjoinÚshutilÚcopy2Úprint)
Úsource_folderÚtarget_folderÚrootÚdirsÚfilesÚrelative_pathZtarget_rootÚfileÚsource_fileÚtarget_file© r   ú7/workspaces/Masterarbeit/8_backup_folder/output_3_0S.pyÚbackup_folder   s   

ýr   )r   r
   r   r   r   r   r   Ú<module>   s    