######################################## #proc tcl_dir : show all file in current path #parameter # path : the path you want to look# flag : # 1--only show curent path file list # 2--show curent path file list include path # 3--show curent path file
python: # 获取所有txt路径列表 file_list = [] def gci(filepath): files=os.listdir(filepath) for fi in files: fi_d=os.path.join(filepath,fi) if os.path.isdir(fi_d): gci(fi_d) else: file_list.append(os.path.join(filepath,fi_d)) gci('E:\data') java: public stati
不会读取 影藏文件 main #!/usr/bin/perl use autodie; use utf8; use Encode qw(decode encode); if(@ARGV ne 3){ # 检查参数 $err = <<"err"; The script execution parameters are wrong! ! path, "suffix", "old value/new value" err die $err;