Alright, sounds like a nightmare scenario. Here’s a more technical solution if you’re comfortable with a bit of scripting. You can write a small script to scan for deleted file fragments using Python itself (it’s meta, I know). Below is a basic example of a script that scans your disk, but be warned, it’s pretty resource-intensive and not guaranteed.
Программный код:
import os
from datetime import datetime
def search_deleted_files(root_folder, extension='py'):
deleted_files_info = []
for foldername, subfolders, filenames in os.walk(root_folder):
for filename in filenames:
if filename.endswith(extension):
file_path = os.path.join(foldername, filename)
try:
mod_time = os.path.getmtime(file_path)
deleted_files_info.append((file_path, datetime.fromtimestamp(mod_time)))
except Exception as e:
print(f"Error accessing {file_path}: {e}")
return deleted_files_info
if __name__ == "__main__":
root_folder = "C:\\Users\\<YourUsername>"
deleted_files = search_deleted_files(root_folder)
for file_path, mod_time in deleted_files:
print(f"Found: {file_path}, Last Modified: {mod_time}")
This script walks through directories and lists files with the `.py` extension, including their last modified times. You can tweak it to fit your exact needs, like targeting specific directories or file names.
If none of these work, I’d strongly recommend setting up a reliable backup system moving forward so this doesn't bite you again. Good luck!