Skip to content

Commit 0e087c4

Browse files
committed
Refactoring
1 parent d0464c2 commit 0e087c4

File tree

1 file changed

+2
-5
lines changed
  • search_of_empty_folders_in_all_disk__multithreading_multiprocessing

1 file changed

+2
-5
lines changed

search_of_empty_folders_in_all_disk__multithreading_multiprocessing/main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77
import time
88
import os
99
import shutil
10-
import sys
1110

1211
# If need use threads
1312
from multiprocessing.dummy import Pool
1413
# Or:
1514
# from multiprocessing import Pool
1615

17-
from pathlib import Path
18-
1916
import psutil
2017

21-
sys.path.append(str(Path(__file__).resolve().parent.parent))
22-
from human_byte_size import sizeof_fmt
18+
# pip install humanize
19+
from humanize import naturalsize as sizeof_fmt
2320

2421

2522
def search_empty_folders(disk):

0 commit comments

Comments
 (0)