Module ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Return CompareIn SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str If UnaryOpNot NameLoad body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Pass orelse Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Str keyword Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Slice Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str
N/A __future__ print_function unicode_literals absolute_import N/A os N/A os.path N/A shutil N/A errno N/A logging N/A io N/A hashlib N/A simiki simiki.compat unicode N/A logger N/A N/A logging getLogger __name__ N/A COLOR_CODES N/A reset black red green yellow blue magenta cyan white bgred bggrey [0m [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m [1;41m [1;100m color_msg N/A N/A color msg N/A N/A N/A N/A N/A N/A COLOR_CODES N/A color msg N/A COLOR_CODES N/A reset N/A check_extension N/A N/A filename N/A N/A N/A Check if the file extension is in the allowed extensions

    The `fnmatch` module can also get the suffix:
        patterns = ["*.md", "*.mkd", "*.markdown"]
        fnmatch.filter(files, pattern)
     N/A exts N/A N/A N/A .{0} format e N/A e N/A simiki allowed_extensions N/A N/A N/A N/A N/A N/A os path splitext filename N/A 1 exts N/A copytree N/A N/A src dst symlinks ignore N/A False None N/A N/A Copy from source directory to destination N/A N/A N/A N/A N/A os path exists dst N/A N/A N/A N/A os makedirs dst N/A item N/A N/A os listdir src N/A N/A s N/A N/A N/A os path join src item N/A d N/A N/A N/A os path join dst item N/A N/A N/A N/A os path isdir s N/A N/A N/A copytree s d symlinks ignore N/A N/A N/A N/A shutil copy2 s d N/A emptytree N/A N/A directory exclude_list N/A None N/A N/A Delete all the files and dirs under specified directory N/A N/A N/A isinstance directory unicode N/A N/A directory N/A unicode directory utf-8 N/A N/A exclude_list N/A N/A exclude_list N/A N/A p N/A N/A os listdir directory N/A N/A N/A p exclude_list N/A N/A N/A fp N/A N/A N/A os path join directory p N/A N/A N/A N/A os path isdir fp N/A N/A N/A N/A N/A N/A shutil rmtree fp N/A N/A N/A logger debug Delete directory %s fp N/A N/A N/A OSError N/A e N/A N/A N/A N/A logger error Unable to delete directory %s: %s fp N/A unicode e N/A N/A N/A N/A N/A os path isfile fp N/A N/A N/A N/A N/A N/A logging debug Delete file %s fp N/A N/A N/A os remove fp N/A N/A N/A OSError N/A e N/A N/A N/A N/A logger error Unable to delete file %s: %s fp N/A unicode e N/A N/A N/A N/A logger error Unable to delete %s, unknown filetype fp N/A mkdir_p N/A N/A path N/A N/A N/A Make parent directories as needed, like `mkdir -p` N/A N/A N/A N/A N/A os makedirs path N/A N/A N/A OSError N/A exc N/A N/A N/A N/A N/A exc errno N/A errno EEXIST N/A N/A N/A os path isdir path N/A N/A N/A N/A N/A listdir_nohidden N/A N/A path N/A N/A N/A List not hidden files or directories under path N/A f N/A N/A os listdir path N/A N/A N/A isinstance f str N/A N/A f N/A unicode f N/A N/A N/A N/A f startswith . N/A N/A N/A f N/A write_file N/A N/A filename content N/A N/A N/A Write content to file. N/A N/A _dir _ N/A N/A N/A os path split filename N/A N/A N/A N/A N/A os path exists _dir N/A N/A N/A N/A logging debug The directory %s not exists, create it _dir N/A N/A mkdir_p _dir N/A N/A N/A io open filename wt encoding utf-8 fd N/A N/A N/A N/A fd write content N/A get_md5 N/A N/A filename N/A N/A N/A N/A open filename rb fd N/A N/A md5_hash N/A N/A N/A N/A hashlib md5 N/A N/A fd read hexdigest N/A md5_hash N/A get_dir_md5 N/A N/A dirname N/A N/A N/A Get md5 sum of directory N/A md5_hash N/A N/A hashlib md5 N/A N/A root dirs files N/A N/A os walk dirname N/A N/A N/A dirs N/A N/A sorted dirs N/A f N/A sorted files N/A N/A N/A open N/A N/A N/A os path join root f rb fd N/A N/A N/A N/A md5_hash update N/A N/A fd read N/A md5_hash N/A N/A md5_hash hexdigest N/A md5_hash N/A N/A N/A __name__ __main__ N/A N/A N/A print N/A color_msg black Black N/A N/A print N/A color_msg red Red N/A N/A print N/A color_msg green Green N/A N/A print N/A color_msg yellow Yellow N/A N/A print N/A color_msg blue Blue N/A N/A print N/A color_msg magenta Magenta N/A N/A print N/A color_msg cyan Cyan N/A N/A print N/A color_msg white White N/A N/A print N/A color_msg bgred Background Red N/A N/A print N/A color_msg bggrey Background Grey