first commit

This commit is contained in:
N0\A
2025-10-21 14:18:26 +02:00
commit 1bf3a11208
10 changed files with 202 additions and 0 deletions

20
ui/ui.py Normal file
View File

@@ -0,0 +1,20 @@
import core.file_search as fs
def main():
filename = input("Enter the filename: ")
files = fs.find(filename, "~")
for file in files:
print(file)
if len(files) == 0:
print("I didn't find anything, would you like to try searching the whole disk?")
answer = input("(y/n): ")
if answer.lower() == 'y':
files = fs.find(filename)
if len(files) == 0:
print("No files found on the whole disk.")
else:
for file in files:
print(file)
if __name__ == "__main__":
main()