ezKit 1.0.0b8__py3-none-any.whl → 1.0.0b9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ezKit/utils.py CHANGED
@@ -1063,8 +1063,8 @@ def delete_files(
1063
1063
  return False
1064
1064
 
1065
1065
 
1066
- def delete_dirs(
1067
- dirs: str | list = None,
1066
+ def delete_directory(
1067
+ directory: str | list = None,
1068
1068
  debug: bool = False
1069
1069
  ) -> bool:
1070
1070
  """
@@ -1092,30 +1092,30 @@ def delete_dirs(
1092
1092
  """
1093
1093
  try:
1094
1094
 
1095
- if v_true(dirs, str, debug=debug) and check_file_type(dirs, 'dir', debug=debug):
1095
+ if v_true(directory, str, debug=debug) and check_file_type(directory, 'dir', debug=debug):
1096
1096
 
1097
- rmtree(dirs)
1098
- logger.success('deleted directory: {}'.format(dirs))
1097
+ rmtree(directory)
1098
+ logger.success('deleted directory: {}'.format(directory)) if debug is True else next
1099
1099
  return True
1100
1100
 
1101
- elif v_true(dirs, list, debug=debug):
1101
+ elif v_true(directory, list, debug=debug):
1102
1102
 
1103
- for _dir in dirs:
1103
+ for _dir in directory:
1104
1104
 
1105
1105
  if v_true(_dir, str, debug=debug) and check_file_type(_dir, 'dir', debug=debug):
1106
1106
  try:
1107
1107
  rmtree(_dir)
1108
- logger.success('deleted directory: {}'.format(_dir))
1108
+ logger.success('deleted directory: {}'.format(_dir)) if debug is True else next
1109
1109
  except Exception as e:
1110
- logger.error('error directory: {} {}'.format(_dir, e))
1110
+ logger.error('error directory: {} {}'.format(_dir, e)) if debug is True else next
1111
1111
  else:
1112
- logger.error('error directory: {}'.format(_dir))
1112
+ logger.error('error directory: {}'.format(_dir)) if debug is True else next
1113
1113
 
1114
1114
  return True
1115
1115
 
1116
1116
  else:
1117
1117
 
1118
- logger.error('error directory: {}'.format(dirs))
1118
+ logger.error('error directory: {}'.format(directory)) if debug is True else next
1119
1119
  return False
1120
1120
 
1121
1121
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ezKit
3
- Version: 1.0.0b8
3
+ Version: 1.0.0b9
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -9,12 +9,12 @@ ezKit/plots.py,sha256=QUtoVfZ49ZSNcY8gcQ2TYVkMjDDzoW-myMtqTi5WN2U,5322
9
9
  ezKit/redis.py,sha256=pY4SPlcgQ7S8IeY2xoDpxy-xCZxzZQrQJNAoWRsC1dI,1773
10
10
  ezKit/reports.py,sha256=dBBggggCCLuk5YD6SjdUPuxTr3wiJojP3lA7dQfg6Pk,8898
11
11
  ezKit/sendemail.py,sha256=PItznLBcZ6Om8NU7rep69m3QNZ9YkmOovup7pPGyY58,4840
12
- ezKit/utils.py,sha256=MhKt-uruHY_MesZwtAPF6wN5_bLAdpEy3IjaO2Hzias,38731
12
+ ezKit/utils.py,sha256=-YfSEOx4VvdxzjtVMOSRDRrOSL5V36Zhbcvb5NGcEvo,38911
13
13
  ezKit/weixin.py,sha256=Sxm_yNEvcztFNCZyjZetVwqxoGoL2PJHlQABIWkd1pk,5075
14
14
  ezKit/xftp.py,sha256=qbCqFcGe22TDBSisj0Zoz78tnydDWoOfvywWpXdfaGw,6982
15
15
  ezKit/zabbix.py,sha256=EF0-tQ1FTMBqawXKf3JEoPYoAJmYENXXIm9T5ICSdHM,32345
16
- ezKit-1.0.0b8.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
17
- ezKit-1.0.0b8.dist-info/METADATA,sha256=RA2HNJtrWouyzZFeXMr5qDJhFmZVG0jFqxesqDCiMaA,196
18
- ezKit-1.0.0b8.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
19
- ezKit-1.0.0b8.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
20
- ezKit-1.0.0b8.dist-info/RECORD,,
16
+ ezKit-1.0.0b9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
17
+ ezKit-1.0.0b9.dist-info/METADATA,sha256=aTMvyqPyQtqKHpiiuvIEOcG-87GZorhXFTSVe3z_SSk,196
18
+ ezKit-1.0.0b9.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
19
+ ezKit-1.0.0b9.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
20
+ ezKit-1.0.0b9.dist-info/RECORD,,