Mini Shell
�
�o�i� � � � d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ ej � � d dlT d dl Z d dl
Z
d dlZd dlZ G d� d e
� � ZdS )
� )�print_function)�absolute_import)�division)�unicode_literals)�standard_library)�*Nc �X � e Zd Zdddej fd�Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
dS )
�
CopyDirectoryr r c �v � || _ || _ || _ || _ || _ g | _ g | _ || _ dS )ze
ATTENTION: values other than '*' for parameter 'directorypattern' are not supported
N)�sourcedirectory�destinationdirectory�pattern�directorypattern�overwriteolder�
directorylist�filelist�copyfile)�self�source�destinationr r r r s �+/usr/share/cagefs-plugins/copy_directory.py�__init__zCopyDirectory.__init__ sE � �
&���$/��!���� 0���,��������
� ��
�
�
� c � � t d� � | � � � t d� � | � � � d S )NzGathering file listz)Building directory tree and copying files)�print�walk�go)r s r �processzCopyDirectory.process# s>