File: //lib/python3.6/site-packages/S3/__pycache__/FileLists.cpython-36.pyc
3
@tJ[Cd � @ s d dl mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlT ddlmZ dd l m Z d d
l
mZmZm
Z
d dlZd dlZd dlZd dlZd dlZd dlZdd
dgZdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zddd�Zddi fdd
�Zdd� ZdS ) � )�absolute_import� )�S3)�Config)�S3Uri)�FileDict)�*)�ParameterError)� HashCache)�debug�info�warningN�fetch_local_list�fetch_remote_list�compare_filelistsc c s� yt jt| ��}W n
dS g g }}xN|D ]F}t|�}t jjtt jj| |���rjt| |�st|j|� q.|j|� q.W | ||fV xB|D ]:}t jj| |�}t jj t|��s�xt
|�D ]
}|V q�W q�W dS )z_
Reimplementation of python's os.walk to nicely support unicode in input as in output.
N)�os�listdir�deunicodise� unicodise�path�isdir�join�handle_exclude_include_walk_dir�append�islink�_os_walk_unicode)�top�names�dirs�nondirs�name�new_path�x� r# �/usr/lib/python3.6/FileLists.pyr s"