Skip to content

Commit

Permalink
修复清空回收站报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Mar 31, 2022
1 parent d40ede9 commit 1f2406e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -4343,6 +4343,9 @@ def get_recycle_bin_list():
default_path_src = '/www/Recycle_bin'
if os.path.exists(default_path_src) and not os.path.exists(default_path):
os.rename(default_path_src,default_path)

if not os.path.exists(default_path):
os.makedirs(default_path,384)

# 获取回收站列表
recycle_bin_list = []
Expand Down

0 comments on commit 1f2406e

Please sign in to comment.