MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / check_recyclebin

Method check_recyclebin

class/databaseModel/base.py:238–244  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

236
237 # 检查是否在回收站
238 def check_recyclebin(self, name):
239 try:
240 for n in os.listdir('{}/Recycle_bin'.format(public.get_soft_path())):
241 if n.find('BTDB_' + name + '_t_') != -1: return True;
242 return False;
243 except:
244 return False;
245
246 # map to list
247 def map_to_list(self, map_obj):

Callers 1

add_base_databaseMethod · 0.95

Calls 3

listdirMethod · 0.80
formatMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected