-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainFS.py
More file actions
27 lines (26 loc) · 914 Bytes
/
Copy pathmainFS.py
File metadata and controls
27 lines (26 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import sys
import filesearching
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.stderr.write(" Usage - python <filename> <extension>\n")
print(" extension - py,txt,7z,bz,mp3,pdf,exe ... ")
sys.exit()
else:
try:
ans = filesearching.searching_files()
except Exception as err:
print(str(err))
sys.exit()
if ans == 1:
print(" Something is found \n")
print(" -> Check NAMES \n -> Check full PATHS ")
choice = input("\n Tell me ?\n NAMES / PATHS : ").lower()
filesearching.show_terminal(choice)
send_choice = input(
"\n --- Send files -> found_files ---\n Yes / No : "
).lower()
filesearching.sending_files(send_choice)
else:
print(" Nothing Found here ")
exit()
print("\n -- Thanks ")