From fee268a17f0da2e8e0f0d8af5746fecdf222247f Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Mon, 6 Nov 2023 04:39:29 +0800 Subject: [PATCH] 0.1.17 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/file_processing.py | 34 +++++++++++++++++--------------- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 28b9a64..363a24c 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.16 +version = 0.1.17 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan.egg-info/PKG-INFO b/PyPI/src/guan.egg-info/PKG-INFO index dc37975..08e8621 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.1.16 +Version: 0.1.17 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/file_processing.py b/PyPI/src/guan/file_processing.py index 0530bb3..50d4b71 100644 --- a/PyPI/src/guan/file_processing.py +++ b/PyPI/src/guan/file_processing.py @@ -308,7 +308,7 @@ def find_repeated_file_with_same_filename(directory='./', ignored_directory_with return repeated_file # 统计各个子文件夹中的文件数量 -def count_file_in_sub_directory(directory='./', smaller_than_num=None, sort=0): +def count_file_in_sub_directory(directory='./', smaller_than_num=None, sort=0, print_show=1): import os import numpy as np dirs_list = [] @@ -325,28 +325,30 @@ def count_file_in_sub_directory(directory='./', smaller_than_num=None, sort=0): count_file = len(file_list) count_file_array.append(count_file) if sort == 0: - if smaller_than_num == None: - print(sub_dir) - print(count_file) - print() - else: - if count_file