We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7860d21 commit 5cb8b49Copy full SHA for 5cb8b49
FileDistinctTool.exe
4.91 MB
mmqm/Test.py
@@ -0,0 +1,31 @@
1
+import os
2
+import shutil
3
+
4
+print("FileDistinctTool version:0.0.1")
5
6
+filePath = input("Please enter the folder you want to scan:")
7
+zus = os.listdir(filePath)
8
+sets = {}
9
+try:
10
+ print("start")
11
+ for i in zus:
12
+ pathi = filePath + "\\" + i
13
+ for j in zus:
14
+ pathj = filePath + "\\" + j
15
+ if j == i:
16
+ continue
17
+ if os.stat(pathi).st_size == os.stat(pathj).st_size:
18
+ if sets.get(i) == None:
19
+ if sets.get(j) == None:
20
+ sets[i] = j
21
+ k = sets.keys()
22
+ v = sets.values()
23
+ print("k:",k)
24
+ print("v:",v)
25
+ if len(sets) > 0:
26
+ for i in sets:
27
28
+ os.remove(pathi)
29
+ print("end...")
30
+except Exception as e:
31
+ print("error:",e)
mmqm/__pycache__/Test.cpython-37.pyc
774 Bytes
0 commit comments